Global redirect prevents gallery module clean urls from displaying correctly.

Comments

plan9’s picture

Title: Conflicts with gallery2 module clean urls » Conflicts with gallery module clean urls

Global redirect causes '?g2_path=' to be added to the gallery url path.

Instead of:
http://www.mysite.com/gallery/sculpture/amy/birds.html

I get:
http://www.mysite.com/?g2_path=sculpture/amy/birds.html

When I put my site in maintenance mode the behaviour stops - but this obviously isn't a solution.

Is this a bug with Global redirect or the gallery module?

nicholasthompson’s picture

Status: Active » Postponed (maintainer needs more info)

Does Gallery use any extra RewriteRules (in much the same way Drupal converts ?q=node/1 to node/1, does Gallery do this with the ?g2_path query string? It's the only way I can think GR would break Gallery.

plan9’s picture

Sorry I missed your comment - yes gallery does do a lot of rewriting. I actually stopped using the gallery module as it looked like it was about to be abandoned.

jnimchuk’s picture

Version: 5.x-1.5 » 6.x-1.4

I'm also using Gallery2, and the behavior using Global Redirect is as described previously.

I wonder if instead of fixing this directly, you can create an exception (as you do with external URLs). If the url contains "/xxx/" then treat do not use redirect (or treat as external URL). What do you think? This would certainly solve my problem (otherwise I have to stop using Global Redirect).