Layer 7 API Management

Sample Policy for converting a URL hash fragment into a query parameter 

03-03-2017 12:25 PM

This sample policy uses the Return Template Response to Requestor  assertion and JS script to parse and replace the hash fragment with a query parameter that can be sent back to the server.

 

  1. Create a new endpoint on your gateway (i.e: /replaceHash)
  2. Import the sample policy

  

This policy is provided as-is without warranty or support of any kind and intended only for guidance in using the assertion. 

Statistics
0 Favorited
1 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
zip file
hash_fragment.zip   707B   1 version
Uploaded - 05-29-2019

Tags and Keywords

Comments

03-03-2017 12:35 PM

Nice work Mohindra.Singh.

Good way to work around the limitations of the hash fragment.

Related Entries and Links

No Related Resource entered.