You can change the transition destination when you select the "Logout" menu in the Utilities menu.
To change the transition destination at logout, add the request parameter "im_url".
For example, if you want to transition to the home screen, specify the following to transition to the home screen after logging out.
http://<server host name>/imart/logout?im_url=/home
■ intra-mart Accel Platform authentication specification - Detail each function - Logout - Logout function - Specifying the transition destination after logout
https://document.intra-mart.jp/library/iap/public/im_certification/im_certification_specification/texts/components/logout.html#logout-target-page
To give "im_url" when selecting "Logout" menu of utility menu, it is necessary to create the following settings and plug-ins.
(1) Enable "Whether screen transition is supported by request parameter (at logout)" (enable_requested_target_url) in the following setting file.
WEB-INF/conf/certification-config/im_login.xml
(Reference)
■ intra-mart Accel Platform Setting file reference - Authentication function - Authentication settings (for general user) - Whether screen transition is supported by request parameter (at logout)
https://document.intra-mart.jp/library/iap/public/configuration/im_configuration_reference/texts/im_certification/im_login/index.html
When editing with IM-Juggling, output the setting file in the following way.
a. Open IM-Juggling project/juggling.im.
b. Press the [Setting file] tab at the bottom right of the editor.
c. Select "Authentication function" - "Authentication settings (for general user)" and press the output button.
d. im_login.xml is output to IM-Juggling project/conf/certification-config.
e. Edit im_login.xml.
-- Example --
<!-- Settings used for logout -->
<category name="im_logout">
<!-- (omitted) -->
<!-- Whether screen transition is supported by request parameter -->
<param>
<param-name>enable_requested_target_url<param-name>
<param-value>true</param-value>
</param>
</category>
(2) Override the getUrl() method in the class that inherits the LoginLogoutItemProvider class [*1] and implement it so that the URL with im_url is returned according to any conditions.
[*1] Product standard login/logout class that implements UtilityItemProvider interface
-- Reference --
■ intra-mart Accel Platform theme specification - Theme detail - Theme module
https://document.intra-mart.jp/library/iap/public/im_ui/im_theme_specification/texts/components/ThemeModule.html?highlight=LoginLogoutItemProvider
■ intra-mart Accel Platform theme specification - Utility plug-in
https://document.intra-mart.jp/library/iap/public/im_ui/im_theme_specification/texts/appendix/utility_plugin.html
-- Example --
package sample;
import jp.co.intra_mart.foundation.context.Contexts;
import jp.co.intra_mart.foundation.context.model.AccountContext;
public class LoginLogoutItemWithExternalLinkProvider extends jp.co.intra_mart.foundation.ui.tags.theme.utility.LoginLogoutItemProvider {
@Override
public String getUrl() {
final AccountContext context = Contexts.get(AccountContext.class);
if (context.isAuthenticated()) {
return "logout?im_url=/home";
} else {
return "login";
}
}
}
(3) In the plugin.xml below, change the plugin class name to the class created in the previous section (2).
WEB-INF/plugin/jp.co.intra_mart.foundation.ui.theme.utility.item.loginlogout/plugin.xml
-- Example --
<extension point="jp.co.intra_mart.foundation.ui.theme.utility.item">
<item
id="loginlogout"
name="loginlogout"
classname="sample.LoginLogoutItemWithExternalLinkProvider"
version="1.0"
rank="100"/>
</extension>
*The above (Examples) are only samples.
When implementing, please perform sufficient verification.
(References)
In the screen created using "Sidebar Container" element of IM-BloomMaker, if you select "logout" menu of the sidebar, it will transition to the login screen.
You cannot change this transition destination.
■ IM-BloomMaker for Accel Platform IM-BloomMaker User Operations Guide - Appendix - Element list - Standard Parts - Layout - Sidebar container
https://document.intra-mart.jp/library/bloommaker/public/im_bloommaker_user_guide/texts/appendix/elements/regular.html#imsidemenucontainer
-- Target ----------------------------------------------------------------------
iAP/Accel Platform/All Updates
--------------------------------------------------------------------------------
FAQID:1243
Is it possible to change the transition destination after logout?
