Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

search and "bread crumb" trail

Quote Reply
search and "bread crumb" trail
Hi

In the search results screen, in the column "Forum", look at the bread crum trail - it prints out URLs similar to this one:

http://www.gossamer-threads.com/perl/gforum/gforum.cgi?;category=9

Notice the ; has jumped magicaly to the beginning of the string.

Not a bug, as the system works fine this way, but more of a FYI post.

Cheers

- wil
Quote Reply
Re: [Wil] search and "bread crumb" trail In reply to
It's because the URL looks something like:
Code:

gforum.cgi?<%hidden_query%>;category=9
<%hidden_query%> is set when you are using a template other than your default, or when logging in without cookies - otherwise it's blank. Anyway, as you said, it doesn't hurt anything.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [jagerman] search and "bread crumb" trail In reply to
How about:

gforum.cgi?<%if hidden_query%><%hidden_query%>;category=9<%else%>category=9;<%endif%>

Cool

(I assume 9 needs replacing with <%category_id%> or whatever.)

Last edited by:

RedRum: Jan 11, 2002, 12:11 PM
Quote Reply
Re: [RedRum] search and "bread crumb" trail In reply to
I don't think it's worth the bother. It's faster to insert a blank variable every time than to do an if every time with GT::Template - the if would slow it down - maybe not noticably, but I don't think it's worth it.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com