コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Setting a custom logout page

Avatar

Level 4

I'd like to have users go to a different page other than the root of our application when logging out.
I am following this post here: http://cqinnovator.blogspot.com/2014/07/how-to-change-default-page-after-sign.html

I have created this: /apps/myapp/config.publish/com.day.cq.commons.servlets.RootMappingServlet, and modified the "rootmapping.target" to point to the custom HTML page.

When viewing the page via Publish instance (directly via IP) it works, but when viewing the site via Dispatcher, it goes back to the root. As far as I understand, we have a simple Author-Publish-Dispatcher configuration.

Has anyone experienced this before?

1 受け入れられたソリューション

Avatar

正解者
Level 10

Even if you allow route access in dispatcher will unnecessarily make a load on publisher.  Please have a rewrite rule[1] in dispatcher to land user on home page to get benefit of caching & solving at web server level.

 

[1] RewriteRule ^(/)$ /your/homepagepath.html [R]

元の投稿で解決策を見る

2 返信

Avatar

正解者
Level 10

Even if you allow route access in dispatcher will unnecessarily make a load on publisher.  Please have a rewrite rule[1] in dispatcher to land user on home page to get benefit of caching & solving at web server level.

 

[1] RewriteRule ^(/)$ /your/homepagepath.html [R]

Avatar

Level 4

Thanks Sham HC. If I were to add another application on the same server down the road, wouldn't that impact that? I'm assuming if you add a rewrite rule on the server, it would direct all logouts to that page. Correct? Is there a way to specify per application?