Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Passing a new "preserved parameter" via subcategory

Quote Reply
Passing a new "preserved parameter" via subcategory
I am trying to pass a preserved parameter "card" using subcateogy.
So I saved "card" in the preserved parameter list (with t, g, ...etc.), then I put in the subcategory.html:
Code:
<a href="<%escape_html URL%><%if card%>&card=<%thevalue%><%endif%>"></a>
However, everytime a user clicks on this targetted subcategory, the user gets a blank page. But if you look at the generated URL, you will see this URL (blank page):
g=140%2Findex.php%26card%3D234234;d=1
But if you change the %26 to & or to ; then the you will see the page:
g=140%2Findex.php&card%3D234234;d=1

I tried to fix the issue in CGI.pm uncode the %26 to translate it to & and it works; except I do not want to go that path (for upgrade reasons and others)... any idea bout how to fix this issue in the subcategory.html
thank you in advance..
Mark
Quote Reply
Re: [Mark2] Passing a new "preserved parameter" via subcategory In reply to
Hi,

Try:

<a href="<%escape_html URL%><%if card%>;card=<%thevalue%><%endif%>"></a>

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Passing a new "preserved parameter" via subcategory In reply to
Hello Andy,
I've tried this one before and same results (blank page .. nothing) ... as the ";" translates to "%3B" in the URL, but if you go to the actual URL and change the "%3B" to ";" or to "&" then it works just fine....
Was wondering how if I am passing the preserved parameter correctly... as I want it to work only on specific subcateogires and that is why I have it that way.

thanks
Mark
Quote Reply
Re: [Mark2] Passing a new "preserved parameter" via subcategory In reply to
Try:

Code:
<%if card%>
<%set URL .= ";card="%>
<%set URL .= $thevalue%>
<%endif%>
<a href="<%escape_html URL%>"></a>

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Passing a new "preserved parameter" via subcategory In reply to
I got the same results:
/page.cgi?g=140%2Findex.php%3Bcard%3D23423;d=1

I am calling the index as index.php (not using Glinks php front)....

but still if I change it to:
/page.cgi?g=140%2Findex.php&card%3D23423;d=1

not sure why it is still doing this...

thanks as usual...
Mark
Quote Reply
Re: [Mark2] Passing a new "preserved parameter" via subcategory In reply to
Hi,

Mmm.. afraid I'm all out of ideas :/

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Mark2] Passing a new "preserved parameter" via subcategory In reply to
It is not a bug (so don't change CGI.pm like that), it's the correct behaviour due to the way glinks converts the static urls into dynamic ones. Currently, there's no way to get around this except by generating your own dynamic urls. I'll have to look into ways of getting around this issue.

Adrian