how to stay in the current page when refersh the page

I have created a custom login page, not using the default one, as below. when I login successfully, it will redirect me to a home page. but when I click the refresh page button or press F5 to refresh the page, it will redirect me to the default login page. How should I keep the user login state and stay on the current page, not redirect me to the login page? custom login page: After login: After refresh page:
1 answers

That looks like a security mis-configuration, did you add the correct userroles to the page? If you open a page from a microflow it will always open even if you dont have "access" to it but if you refresh the page it will check the userroles that were set.


Also note that you have to set a unique page url for every page where you want to support F5 refreshing.