on 01-31-2014 10:06 AM
Dear experts,
I was wondering if there is a way to redirect url just for the Fiori Launchpad?
Because the SICF /sap/public/bc/icf/logoff seems to be the service for Launchpad and apps.
Is there a logoff service just for the Launchpad?
Thanks in advance.
Regards,
Atith
go to (tcode) SICF
Go to node:
/sap/public/bc/icf/logoff
Error Pages -> Logoff Page-> Redirect to URL :
/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This will not work. The logout redirect is hard-coded in the ContainerAdapter.js
this.logoutRedirect = function () {
document.location = "/sap/public/bc/icf/logoff";
};
The only solution will be using redirect as described in Configure a Logout Screen for the SAP Fiori Launchpad (Optional) .
Robert Eijpe
Fiori Archtect & Trainer
Please use an external alias as described in Configure a Logout Screen for the SAP Fiori Launchpad (Optional) in stead of changing the node directly. This prevents troubles when you upgrade your system.
Robert Eijpe
Fiori Archtect & Trainer
Perhaps the way we've implemented our app is different than what you are saying is not possible, however our app is in fact working by doing this.
var logoffButton = new sap.ui.unified.ShellHeadItem({
icon : "sap-icon://log",
tooltip : "Logoff"
});
logoffButton.attachPress(function(oControlEvent){
var dialog = new sap.m.Dialog({
title: 'Logoff',
type: 'Message',
content: new sap.m.Text({ text: 'Are you sure you want to log off?' }),
beginButton: new sap.m.Button({
text: 'Submit',
press: function () {
dialog.close();
window.location.href = "/sap/public/bc/icf/logoff?redirectURL=/sap/bc/bsp/sap/zpocnapp/index.htm";
}
}),
endButton: new sap.m.Button({
text: 'Cancel',
press: function () {
dialog.close();
}
}),
afterClose: function() {
dialog.destroy();
}
});
dialog.open();
});
Hi Atith,
Could you share business requirement? What is expected behavior when logoff is selected from app side?
Regards,
Masa
SAP Rapid Innovation Group - RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Masa,
of course. The normal logoff screen looks like this:
But we want to redirect to the login screen after logout:
But the problem is, by using the /sap/public/bc/icf/logoff service for redirect url (under "Error pages" -> "logoff page" -> "redirect URL") it redirect everything which is connected to that service. But we only want to redirect the launchpad so that the logoff screen dosen't look like image 1.
Hope I could describe it well.
Regards,
Atith
Hi Atith,
Is this correct understanding? Each app should back to different page.
App A logoff -> Redirect to the page App A logon
App B logoff -> Redirect to the page App B logon
App C logoff -> Redirect to the page App C logon
I believe most of customers have company home page and users can select a business application from the web page which haa the link for App A,B and C. So I would set redirect to the business application link home page after log off.
Most of large customers setup single sign on and do not use basic authentication. In that case, logon screen does not come up.
Regards,
Masa
SAP Rapid Innovation Group - RIG
Hi Masa,
your understanding is correct.
But the case I described above was related to the launchpad and not to the single apps. So for example if I set redirect URL in service "sap/public/bc/icf/logoff" the apps are also redirected to the url in our case the login screen. But we only want to redirect the launchpad so that the apps are not affected by it. That is the specific business requiremnt.
Sorry, that I expressed myself wrong.
Regards,
Atith
Hi Masa,
that's what we don't want. We don't want to set redirection to specific page for all log off.
We just want to set set redirection for launchpad. Let me try it with images.
First the user logs in to the Launchpad. Then after doing his stuff he wants to log off.
But after clicking on "Log Out" he gets redirected to this page:
Because this is confusing because it looks like a shortdump we want to redirect to the log in screen instead:
This has two advantages:
1. the user dosen't get confused
2. the next user can log on from the same device with a different user
But as you mentioned right, if you modify service "sap/public/bc/icf/logoff" and set the redirect url parameter all apps are also redirected by clicking on log out e.g. log out from Leave Request gets also redirected to login screen.
Hope now it is clear.
Regards,
Atith
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.