Gossamer Forum
Home : Products : Links 2.0 : Customization :

address bar

Quote Reply
address bar
On my site, when you click on a category, the address bar shows something like http://www.linkondemand.com/Arts_%26_Entertainment/ instead of http://www.linkondemand.com/Arts_&_Entertainment/

It obviously has something to do with the "&" sign, but I can't find the origional message of where I got if from.

------------------
- Jonathan Gamble

http://www.linkondemand.com/

Quote Reply
Re: address bar In reply to
There are a few Threads that discuss special characters, including &, in Categories in this Forum. Basically, you need to adjust the regular expressions for the Category field in the categories.def file.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: address bar In reply to
I can't search the threads for just the & sign and I don't know what else to search for.

I'm a cgi-intermediate... I guess that's what you call it.



Name => [1, 'alpha', 40, 75, 1, '', '^[\w\d/_&-]+$'],



What do I need to change it to, w/o messing up my whole category names etc...?



------------------
- Jonathan Gamble

http://www.linkondemand.com/

Quote Reply
Re: address bar In reply to
Try these Threads: (I found them searching with the keywords "Special Characters")

Wink

Bobise: Using special characters in categories
http://www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/001722.html

Special Characters
http://www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/001103.html

The first Thread should answer your question.

Regards,


------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: address bar In reply to
I have a pretty nice work around that i assume Yahoo is using if you check out their site. I use two different things, and i used to name my categories & and saw the same problem you had, but now i use and and i translate the and into & using build clean. If you want the changes + additions, i'll post em' here.
Quote Reply
Re: address bar In reply to
I like it how it is, I just wish it didn't display that %20, I'm still working on it though.

------------------
- Jonathan Gamble

http://www.linkondemand.com/

Quote Reply
Re: address bar In reply to
There is also the problem (I'm bringing this back up because it never really was solved) of the categories with & in it never being selected when you add a link in that category. I think the two problems are related.

Maybe it has something to do with the "&" instead of "&". The problem with that is that the ";" tells the cgi-script to end the line. Any suggestions?

------------------
- Jonathan Gamble

http://www.linkondemand.com/



[This message has been edited by jdgamble (edited October 06, 1999).]
Quote Reply
Re: address bar In reply to
Well, you could try inserting an escape character before the semi-colon ;, like the following:

Code:
amp\;

May be this will help.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: address bar In reply to
While you wrote that I did figure that it will still display the "&" w/o the ";" in it anyway.

But here is the problem I have come down to. Everything works fine when I type in the adress http://www.linkondemand.com/Arts_&_Entertainment/ and I click on add. But when I go to the home page and it takes me to http://www.linkondemand.com/Arts_%26_Entertainment/ and I click add, it does not select the category at all. So now I know for a fact the problems are related.

So basically, the question is, what is causing the %26 to display, and how do I get rid of it...



------------------
- Jonathan Gamble

http://www.linkondemand.com/

Quote Reply
Re: address bar In reply to
Bobsie has already said that those problems will appear with using & and he recommended using and in another thread. If you wanna see it, try searching for Auto Select with Bobsie's name.