cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to getPath() for URL s with #

SOLVED
New Contributor

Unable to getPath() for URL s with #

Sample HTTP URL looks like : https://www.example.com/dashboard/#/settings

 

I need to check the URL pattern from a rule in the Virtual Server as following,

 

 

 log.info("Request  Path  : " . http.getPath());
 log.info("Request  RawURL: " . http.getRawURL());

But the out put is : 

Request Path : /dashboard/
Request RawURL: /dashboard/

 

/#/settings is not coming in the path or RawUrl. How can I tract the full path with /dashboard/#/settings ? seems after the # traffic script not reasing the path values.

 

Tags (1)
2 REPLIES 2
Community Manager

Re: Unable to getPath() for URL s with #

Most likely the "#" is identified by your browser as a URL fragment - which is not sent to the web server.

 

Fragments are usually handled by the browser client, not sent to the web server, and so Traffic Manager may not be able to see the # as part of the URL request from the client.

 

New Contributor

Re: Unable to getPath() for URL s with #

Got it thanks. Have to change the URL with a proper path.