Problems with image links with Joomla

sven111

Joined: 2005-05-15
Posts: 10
Posted: Wed, 2005-12-14 10:32

I am using Gallery 1.5.1

I have a problem with gallery album and image links not being right. My Joomla is situated in a dir and not at server root. So gallery url is like this: http://www.myhost.com/dir/gallery and dir also has Joomla in it. After I installed com_gallery I did want to see urls like http://www.myhost.com/dir/index.php?option=com_gallery&Itemid=2 but instead I am getting the urls without the dir - part and they will redirect the user to http://www.myhost.com.

How could I make Gallery to write the links properly? I have set the paths correctly to confiuration http://www.myhost.com/dir/gallery and http://www.myhost.com/dir/albums and gallery by itself works nicely.

 
sven111

Joined: 2005-05-15
Posts: 10
Posted: Wed, 2005-12-14 11:18

I got it solved :)

I searched through the Gallery files and finally found that links are generated at init.php - there is line 381 and changed it to this: $gallery->session->mambo->mosRoot = dirname('/dir'.$_SERVER['REQUEST_URI']);

Now every link is fine.