hack breadcrumb?

jasonscottphotojasonscottphoto Registered Users Posts: 711 Major grins
I am trying to hack my breadcrumb so that when someone uses the keyword feature on my search page (http://www.jasonscottphoto.com/find), they can return to the search page by clicking on the breadcrumb. Currently, clicking "keywords" returns you to http://www.jasonscottphoto.com/keyword

I got this far:
YE.onAvailable('breadcrumb', hackBreadcrumb);

function hackBreadcrumb() {
  re1 = /href="(http:\/\/(\www.jasonscottphoto.com))?(\/)?"/;
  re2 = /Jason Maiolo/;
  re3 = /href="((\keyword))?(\/)?"/;
  re4 = /keywords/;
  this.innerHTML = this.innerHTML.replace(re1, "href='/galleries/'");
  this.innerHTML = this.innerHTML.replace(re2, "Jason Scott Photography");
  this.innerHTML = this.innerHTML.replace(re3, "href='/find/'");
  this.innerHTML = this.innerHTML.replace(re4, "Search");
}

Which changed "keywords" to "Search" - but I know I have screwed something up with the ( and ) and / and \ because I can't get the actual link to change.

Can anybody help?
Posts by Allyson, the wife/assistant...

Jason Scott Photography | Blog | FB | Twitter | Google+ | Tumblr | Instagram | YouTube

Comments

Sign In or Register to comment.