Forum Discussion
dkinsler_23191
Nimbostratus
Aug 19, 2009Missing anchor # from redirect
Hi all,
I have an Irule that redirects to https. The problem I am having is the redirect removes any anchors from the URI variable. For instance, if my link is:
http://host1.test123.com/extra/help/4rem9prestuqem5b/help.htmSoftware/Other_Software/Installing_GIMP.htm
after the redirect, I wind up with:
http://host1.test123.com/extra/help/4rem9prestuqem5b/help.htm
Any help would be greatly appriceated. Here in my Irule. X would be my real IP adderss.
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals X.X.X.X] } {
HTTP::respond 301 Location "https://[getfield [HTTP::host] : 1][HTTP::uri]" }
}
- From what I can determine, anchor delimiters are not passed through from the browser on requests, they are used in responses to tell the browser if it should jump to an anchor tag in the response content. I ran a trace with HttpWatch to verify this and here's what showed up
(Request-Line): GET /foo/bar HTTP/1.1
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects