Accessing page with url

0
Hi Reader,   There is a scenario, there are two pages with static URL with same user role access. I have to show one page when user login into application for first time and second page when login into application second time. This scenario I have implemented and working perfectly fine. But accessing first page after login and change the url of page in the browser with the second page url then it is accessing. So, I want if user changes the url manually the I can restrict by displaying that page and show correct page by altering url. Please suggest some ideas how can I achieve.
asked
1 answers
0

Since you are using direct page URL's and user has access, its hard to prevent this behavior through URL navigation. 

 

However, I assume you do have a microflow as role based home page, to define the 1st & second login. If this is correct, I would solve it using the events widget

  1. Put the events widget on the page for second login
  2. Create a microflow which will execute the same logic as login.
  3. Extract the logic which defines 1st or second login from home page microflow
  4. Use this sub microflow in the new microflow. 
    1. When 1st login, open 1st page
    2. When 2nd or higher login, do nothing
    3. DO NOT REUSE THE HOME PAGE MICROFLOW DIRECTLY! this will cause infinite loop when accessing app 2nd time
  5. Trigger this microflow using the events widget directly when accessing the page.

 

 

 

answered