988
Views
5
Comments
Solved
Redirect to different screen in other module

Hi All,

I want to redirect to a screen in different module moduleBa from module Ain reactive web,I have linked to redirect url -modulenameA/pagename,

But it is taking url as modulenameB/ModulenameA./page,

Please let me know how to redirect,I have referred existing suggestions but not working,


Regards

2022-02-07 08-52-30
Pranav Pandey
Solution

Hi Ujwala,

My suggestion is to check the dependency reference to add that function, it's available in reactive as well. This will be helpful when moving your application from one environment to another else you have to manually manage the environment part (one way is using site property, but this is not a good idea )


2026-04-01 11-40-30
Mahesh Manchala

Hi Ujwala,

I made a sample application for your requirement.

Please find the attached OAP for Module A and Module B logic.

Redirect.zip
2022-02-07 08-52-30
Pranav Pandey

Hi ujwala,

In general, the URL of any application contains the below sub parts 

HTTPS://[EnvironmentName]/[ModuleName]/[PageName]

in this, the module name and page name of the application remains static, The only parameter that change is the environment name.

In order to get the environment name, you can make use of GetRequestDomain() function.

So the URL would be 

"https://"+ GetRequestDomain()+"/ModuleName/PageName"

Also, you can make use of External Site to navigate to another screen. This works even if the next page is present in another module.

UserImage.jpg
ujwala

Thank you Pranav,

It is working with above URL format.GetRequestDomain () is not in reactive web app,

I have used complete url as per above.

Regards,

Ujwwala

2022-02-07 08-52-30
Pranav Pandey
Solution

Hi Ujwala,

My suggestion is to check the dependency reference to add that function, it's available in reactive as well. This will be helpful when moving your application from one environment to another else you have to manually manage the environment part (one way is using site property, but this is not a good idea )


2022-10-18 07-32-49
Randall Jodache Chetty
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.