Skip navigation.
Related Links
Accessing the Fragment from PHP - is it possible?

Accessing the Fragment from PHP - is it possible?

22
Mar
2008

peashoter has raised a good point in an issue report for GlobalRedirect. What happens to a URL which has a fragment in it - such as:

http://www.example.com/node/100#comments

I have done a google and cant find any answer to this. It appears that the fragment is not passed to PHP. This makes it a LOT harder to fix!

On a positive note, if a user was to user a proper browser then they should have the fragment preserved for them.

A potential case could be if drupal.org decided to enable the path module and pathauto to improve site SEO. If there were embedded links to the comment form or comments on another node, then the redirection will break (if GlobalRedirect were also chosen). Obviously there are a LOT of if's in this sentence - but there certainly IS a case for a large site enabling path + pathauto and having all their links with fragments in them broken.

So - does anyone have any suggestions? If so - PLEASE report them to this issue.

Cheers :-)

It'd be nice if you asked before taking stuff from my site. Contact me at webmaster [at] thingy - ma - jig . co . uk

This site was based on the Cobalt 2.0 Theme for phpBB written by Jakob Persson

Free MiniMac

Free MiniMac

Hot Products
Social Statistics
Search
Google



Weblinks

Add to Technorati Favorites

TGC Webring

CMS Drupal Showcase

Feedburner for ThingyMaJig

View Nicholas Thompson's profile on LinkedIn

My Twitter
  • Loading Twitter