Loading ...
Sorry, an error occurred while loading the content.
 

Re: How to get the "fragment" portion of a URI from $r

Expand Messages
  • Stas Bekman
    ... As a workaround you could do: /foo/bar/blah#blah or /foo/bar?blah#blah where /foo/bar is the real resource, of course you will have to modify your HTML to
    Message 1 of 5 , Apr 14 4:55 PM
      John Siracusa wrote:
      > On 4/14/03 6:11 PM, Iain Truskett wrote:
      >
      >>* John Siracusa (siracusa@...) [15 Apr 2003 07:06]:
      >>
      >>[...]
      >>
      >>>This is troubling...is the fragment only a client-side feature?
      >>
      >>Yes.
      >
      >
      > Ick. I guess that means it's impossible to redirect someone to a secure
      > version of the exact URL that was requested, because I have no way of
      > knowing what the fragment part of the URL is! Who designed this protocol
      > anyway... ;)

      As a workaround you could do:

      /foo/bar/blah#blah or /foo/bar?blah#blah

      where /foo/bar is the real resource, of course you will have to modify your
      HTML to have the #fragment also included at the end of the url.

      __________________________________________________________________
      Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
      http://stason.org/ mod_perl Guide ---> http://perl.apache.org
      mailto:stas@... http://use.perl.org http://apacheweek.com
      http://modperlbook.org http://apache.org http://ticketmaster.com
    Your message has been successfully submitted and would be delivered to recipients shortly.