How to get url parameters of previous page on current page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2023 06:18 AM
I am currently working with three different pages on employee center, first one is a record from our custom table and the other two are are list and form. I have cloned out of the box widget i.e. Breadcrumbs on list and form pages. I am having trouble creating a breadcrumb navigation among pages. I need table name and sys id in order to redirect the user from the form page on to the first page that contains the record of our custom but due to different pages and url, I can't seems to get the sys id of the record from the first page. I can't use static sysid since the record on first page will vary. What I want is to send table and sysid that is stored on the url of first page onto the last page so I can access it for breadcrumbs navigation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2023 08:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2023 12:47 AM - edited ‎02-14-2023 12:53 AM
@Community Alums
Yes, I tried this earlier but it is not working as I am working in portal every time it says the function is not defined, I used window.history.back(-2) as I want it to return 2 pages back but the issue now is that when it is opened in a new tab the functionality is not working as the session has no previous history, how can I overcome this, any more suggestions, and thanks for replying by the way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2023 10:31 AM
Hello @Muhammad Ahsan , everything is fine?
I don't know if you are still facing the breadcrumbs issue but wanted to post a custom breadcrumb for threads in this question here.
is a custom breadcrumb that brings the taxonomy path to get to the catalog item
See if it helps you
How to make breadcrumb navigation to match Content... - ServiceNow Community