In accordance with widely-accepted SEO best practices, I create many URLs that include hyphens -- e.g., http://r-spec.org/where-can-i-learn-more.

With Global Redirect enabled, these URLs are truncated after the first hyphen, leading to a 404 on that page.

For example,

http://r-spec.org/where-can-i-learn-more

... would be truncated to:

http://r-spec.org/where-

This is not happening at the filter stage. The URLs exist in page code at the point where the user clicks, and if I enter the URL in manually, it gets truncated in the resolution process. I.e., it's happening after the full URL is sent to Drupal.

Comments

nicholasthompson’s picture

Status: Active » Postponed (maintainer needs more info)

That's never happened to any other site I've used GlobalRedirect on...

Can you please provide an example of where this is happening on your site. I've gone to r-spec.org and I cannot replicate the error.

Are you sure GR is causing this?!

escoles’s picture

Since the problem breaks almost all the custom URLs on the site, I've disabled Global Redirect. So you won't see it there right now.

When Global Redirect was disabled, the problem went away. If I enable it, the problem returns.

Try it here:

http://dev.r-spec.org/where-can-i-learn-more

Note that the URL gets truncated to "http://dev.r-spec.org/where" -- I stated it incorrectly before, it trucates at the hyphen, not after it.

You can also find the same link in the first paragraph of this page:

http://dev.r-spec.org/

(You'll need to authenticate with the user ID 'rspecdrupal' and the password 'rspecdrupal')

Additional info:

I have disabled Google Analytics and Path Redirect (which were the only modules I could see on my list that looked to me like they might rewrite URLs), and verified that with either of them disabled and Global Redirect still enabled, the problem persists. I've verified that it happens in Firefox 2 and 3 and Safari 3.

I've also turned off clean URLs to see what would happen. Problem persists with clean URLs off and Global Redirect on; problem goes away with clean URLs off and Global Redirect off.

Apache 1.3.41 / PHP 5.2.5 / Drupal 5.7

nicholasthompson’s picture

Can you give 1.3 a go please - I still don't understand why this was happening but I assume from the lack of replies on this issue you're either not too bothered about GR or its fixed for you?

escoles’s picture

It was not fixed. I don't have a ton of time to do debugging on that site and that was the only place I was running Global Redirect.

I'll check out 1.3 when I get some time and post back.

nicholasthompson’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Marking as 'Wont Fix' as there is no confirmation this bug still exists, I cannot replicate it and nobody else has complained about this odd behaviour. I genuinely cant see what was causing it!