Page works fine when page is accessed by interacting with the app, i.e. clicking a link, but returns 404 error when URL is entered directly in the browser. Also happens on page refresh.
Example for authentication page: https://app.domain.com/loginPage
Error: