Layer7 API Management

 View Only

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

Mar 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
5 Views
1 Files
0 Shares
1 Downloads
Attachment(s)
zip file
hash_fragment.zip   707 B   1 version
Uploaded - May 29, 2019

Tags and Keywords

Comments

Mar 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.