ナレッジベース
公開されました Sep. 10, 2025

非推奨のリダイレクトURLポータルプロパティ

written-by

Jorge Diaz

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

問題

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

did-this-article-resolve-your-issue

ナレッジベース