About the behavior of "URLSearchParams"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I'm developing a portal screen that I intend to display in the platform's content frame.
I tried to get the URL using "var urlParams = new URLSearchParams(decodeURIComponent(top.location.search));" in the catalog client script, but nothing was retrieved.
The portal screen works fine if I display it in a separate tab instead of the content frame.
Is there any difference in behavior?
<Example of displaying a portal screen in the platform content frame>
<Normal portal screen>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @bonsai ,
Using catalog client script how to read parameter from URL , you will get from this links. Hope it will help you.
Solved: Re: How to Read Parameter from URL ? - ServiceNow Community
Solved: How to Read Parameter from URL ? - ServiceNow Community
Solved: Get URL Parameters from Client Script - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I tried everything but it didn't work.

