Forum Discussion
phani
Advisor
Hi PaoloT,
Thanks for your quick response.
We are able to get the value by using http.client.response FreeMarker context object, if the parameter passed with '&'
E.X.: /plugins/custom/community_name/community_name/your_endpoint?data=test&token=1234
Code Snippet: <#assign token = http.request.parameters.name.get("token","")/>
In our requirement we are calling the endpoint with hash value. For us Javascript is not preferable option.
E.X.: /plugins/custom/community_name/community_name/your_endpoint#token=1234
Could you please provide more description on your statement "URL fragment is not sent to the server", it might helpful for us to try some workaround?
Regards,
Phani
VarunGrazitti
10 years agoBoss
phani - As the freemarker executes on the server and not on the client side, so you cannot get the # fragments because they never reach server. They stay on the client side, so you could only read it using a client side language. JS or jQuery.
I hope this helps.
I hope this helps.
Related Content
- 4 years ago
- 13 years agoInactive User
- 6 years ago