extra "?" added to url when not logged in.

jmzhodge

Joined: 2009-08-14
Posts: 1
Posted: Thu, 2010-02-04 12:41

Hi there,

Ive been adding a set of tabs to gallery2 showing popular items, recent items etc.

each tab is setup and working and displaying images and links correctly, however i thought i would edit the blocks module template to change the url that is linked to for each item, so rather than linking directly to the item url it would say open the slideshow with that item first

so thought to edit.

modules/templates/ImageBlock.tpl

need to add /slideshow.html to the item link so seemed right to go with <a href="{$linkHref}/slideshow.html">

this works fine if logged in as a valid user however when not logged in the url that is generated has a ? at as part of the address creeated by {$linkHref} e.g. main.php/v/albumname/17012010431.jpg.html?/slideshow.html

when logged in the url does not have the extra ? and so links directly to the slideshow.

if anyone has any ideas as to why this is and if it can be worked around that would be fantabbytasic .

james, mega.

http://imagery.darklikemysoul.com
http://darklikemysoul.com