Web User Authentication presents a login screen before an end user can access protected DataPages. Sometimes you may want to provide separate login screen on a web page without any DataPages, such as your homepage. This article explains how you can create a separate login DataPage which, upon successful login, directs end users to another URL automatically.
Steps to create a standalone login screen:
Create an HTML DataPageCreate a new DataPage by clicking New DataPage and selecting HTML as DataPage type. After choosing HTML page, go to the next screen and enable restrict Access based on your authentication.
<script> window.location = "http://www.mysite.com/dashboard.html"; </script>Replace the URL from http://www.mysite.com/dashboard.html to your site URL where you want to redirect the user. Click Finish.
Deploy the HTML DataPageNow you can deploy the HTML DataPage to your web page. Keep in mind that after a user has logged in, they will no longer be able to view the original web page. They will be redirected immediately to the specified destination URL.