Dynamic url redirection based on the instance login

Community Alums
Not applicable

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.

5 REPLIES 5

Maik Skoddow
Tera Patron
Tera Patron

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

Community Alums
Not applicable

Hi @Maik Skoddow 

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. 

chanti1_0-1702278192933.png

 

Maik Skoddow
Tera Patron
Tera Patron

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

Community Alums
Not applicable

@Maik Skoddow 

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.