g2_return requestVariable not full URL problem.

thenetimp

Joined: 2006-01-10
Posts: 51
Posted: Thu, 2006-04-06 15:49

Hi Everyone.

Looks like the request variable g2_return is no longer a fullyqualified URL, just a URL relative to gallery2 document root. Was this done on purpose as part of the API change? If so, that's cool I can find a way to fix my code. Otherwise, someone may want to take a look at it and fix it so that the modules that depend on it can continue to function properly..

Thanks,
James Andrews
Software Engineer
Digibug Expresss, Inc.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-04-07 21:19

yes, that's an API change in 2.1.
there's a forceFullUrl option, see the phpdoc on modules/core/classes/GalleryUrlGenerator.class, function generateUrl.
(the same flags apply to g->url in tpls too)

 
thenetimp

Joined: 2006-01-10
Posts: 51
Posted: Fri, 2006-04-07 21:25

Awesome, thanks.

James Andrews
Software Engineer
Digibug Expresss, Inc.