Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Pramod Jain
MVP
3
Views
1
Comments
Page Redirection After Login.
Question
I have created a page in espace which is "Test.aspx" and requires roles to access, i tried running this page using url like
http:\\myserver\espace\Test.aspx
and redirects me to the login page i logged in using the credntilals having th eright role for page and i redirected to the Home page instead of the "Test.aspx" , can some one please let me know do i need to set anything related to session to navigate to the url i typed in.
Paulo Ramos
Staff
Hi Pramod,
If you create a new application and add a module to it, you'll have this pattern working. Some remarks:
Your Login screen receives an optional parameter - OriginalURL.
After logging in the user, you redirect the user to this OriginalURL, if it's filled in.
In your screen handling the 'Security Exception' exception (e.g. NoPermission), you should redirect the user to the Login screen, filling in the OriginalURL parameter - use function
GetExceptionURL()
here.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...