gallery2embedded.php wrong referential link, link fails

kfisher

Joined: 2007-05-16
Posts: 1
Posted: Thu, 2007-05-17 00:02

Using the stock gallery2embedded.php source, I have ironed out everything except the following.

For some reason, an extra slash is entered, separating my passed variables from the "main" link. As a result, the linking fails...

Has anyone else had this issue? I can't seem to find where in embed.php or gallery2embedded.php I can remove the errant slash.

The links that I am getting are:

Quote:
http://DOMAIN/index.php/?main_page=photo_gallery&g2_itemId=18

where I really want:

Quote:
http://DOMAIN/index.php?main_page=photo_gallery&g2_itemId=18

The link building element seems to add the /

$g2_Config['g2Uri'] = '/photo/';
$g2_Config['embedUri'] = '?main_page=photo_gallery';

I can't see where to rework the link and leave the "full-size" gallery as stock as possible.

Any and all insight is greatly appreciated!

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Tue, 2007-05-22 14:19

Your embedUri is wrong.

It need to be /index.php?main_page=photo_gallery

Steve Lineberry