Dynamic url redirection based on the instance login

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 10:46 PM
Hi All,
On a catalog form we have created a links to redirect to table data which is already applied with the filters.
But want to make it to dynamic url redirection based on the instance on which the user is currently logged in.
any suggestion to get it achieve.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 10:52 PM
Hi @Community Alums
unfortunately is not clear what your issue is. Please provide more information, context and screenshots to help us understand you better.
Maik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 11:05 PM
Requirement is we have a catalog form through that we are creating records into the table cmdb_model
and on the same form itself we have one link attached through which it will redirect to table which will give you the existing data.
When we are in dev environment we are making the url change manually to dev link and when we move try to access the same in the preprod environment we need to change the url again manually to preprod url.
want to change it to dynamic redirection based on the logged in instance.
any suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 11:32 PM - edited 12-10-2023 11:34 PM
Hi @Community Alums
there is no need for dynamic URL configuration if you use relative links starting with a "/". The browser is then using the current domain of instance the user is logged-in. So just remove the complete domain name from the URL and use something like this: /now/nav/ui/classic/params/target/cmdb_model_list.do
Maik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 12:34 AM
the suggested method is working,
is there any other way to get it worked with the current instance or server currently running on the instance.
any suggestions, correct me if i'm wrong.
Thanks.