問題
Liferay 7.2からLiferay 7.4への移行で、通常のリダイレクトプロパティが非推奨であることに気づきました。 下記のプロパティの代わりに何が使えるか?
redirect.url.security.mode=domain
redirect.url.domains.allowed=url1.com, url2.com,url3.com
Environment
Liferay DXP 7.4
解決策
ログインのため:
Default Landing Page
Set the default landing page path for logged in users relative to the server path.
This is the page users are automatically redirected to after logging in.
For example, if you want the default landing page to be http://localhost:8080/web/guest/login, set this to /web/guest/login.
To activate this feature, set auth.forward.by.last.path to true.
To customize the behavior, see com.liferay.portal.events.DefaultLandingPageAction in the "login.events.post" property above.
The following variables can be used: ${liferay:screenName} and ${liferay:userId}.
Env: LIFERAY_DEFAULT_PERIOD_LANDING_PERIOD_PAGE_PERIOD_PATH
Defaults:
default.landing.page.path=
Examples:
default.landing.page.path=/web/guest/login
default.landing.page.path=/user/${liferay:screenName}/home
ログアウトのため:
Default Logout Page
Set the default logout page path for users relative to the server path.
This is the page users are automatically redirected to after logging out.
For example, if you want the default logout page to be http://localhost:8080/web/guest/logout, set this to /web/guest/logout.
To activate this feature, set auth.forward.by.last.path to true.
To customize the behavior, see com.liferay.portal.events.DefaultLogoutPageAction in the "logout.events.post" property above.
Env: LIFERAY_DEFAULT_PERIOD_LOGOUT_PERIOD_PAGE_PERIOD_PATH
Defaults:
default.logout.page.path=
Examples:
default.logout.page.path=/web/guest/logout