How to change the redirect URL for Login, Logout, and Session Timeout
Applies to
HCL Digital Experience 8.5 and higher
Introduction
If a user successfully logged in to your website, they will be redirected to another page (for example, the main landing page or welcome page). This redirection also applies when a user logs out or when their session times out.
This article describes the steps to change the redirect URL for Login, Logout, and Session Timeout.
Instructions
Refer to the following steps to change the redirect pages for Login, Logout, and Session Timeout.
Changing the Login and Logout redirect page
-
Open a command prompt and navigate to directory
<wp_profile_root>/PortalServer/config. -
Open the
ConfigService.propertiesfile with a text editor. -
In
ConfigService.propertiesmodify the Login redirect parameters as follows:# Default: true #redirect.login = true # #redirect.login.ssl = # #redirect.login.url = http://<domain>/wps/portal/Home/<url> -
Edit the Logout redirect parameters as follows:
# Default: false #redirect.logout = true # #redirect.logout.ssl = # #redirect.logout.url =http://<domain>/wps/portal/Home/<url> -
In the command prompt, navigate to the directory
<wp_profile_root>\ConfigEngine. -
Run the following command:
./ConfigEngine.sh update-properties -DWasPassword=password
Changing the Session Timeout redirect page
- Log in to the WebSphere Integrated Solutions Console as an admin user.
- Navigate to Resources > Resource Environment > Resource Environment Providers > WP ConfigService > Custom properties.
- Click New....
- Under Name, enter
redirect.logout. - Under Value, enter
true. - Click OK.
- Click New....
- Under Name, enter
redirect.logout.url. - Under Value, enter
/wps/portal. This will redirect the user to login portlet after a session timeout. You can also provide custom URL to redirect users to a custom screen instead. - Click Ok.
- Click Save at the top of the console messages.
- Restart your HCL DX server.