Our company still uses the custom portal with site, we have a site page as a customised portal login page collects user email and password then redirected to portal login URL like this:
PageReference p = new PageReference(https://na3.salesforce.com/secur/login_portal.jsp?orgId=00D50035445xxx&portalId=060500000000xxx&un=xxx&pw=xxx);
General speaking, I need to keep the default landing page/tab which is the
home tab, but if an unauthorised use directly request the
report tab's url, I want to redirect the user to login_portal first, then redirect to the
report tab after login.
Is there a way we can set the landing URL after login in that URL?