Need to get query param values from full-page app URL.
Ex : From URL -> https://acme.freshdesk.com?/a/apps/customapp?key=test1&value=test2 Get params { key:"test1", value:"test2" }
Methods tried so far:
-
new URLSearchParams(window.location.search);
This returns{}
-
window.parent.location
since the app renders inside an iframe
But when trying it on the browser console, I could able to get the iframe URL and query params
What I am trying to achive?
I am trying to navigate from Freshchat to Freshdesk full-page app when a button is clicked on Freshchat sidebar, which will pass some information in the query params.
Please help me with this or suggest a suitable approach to accomplish this.
Thanks in advance.