Help with my Node site - My page redirects to login and goes blank!

I don’t know if this is a bug or if I have totally screwed something up. Please, all the Node gurus I really need your help. Any help would be appreciated, this is driving me crazy!

I have a Node site and I am using content pages and layout pages. I have a login page and on successful login it redirects the user to a dashboard page.

When I go to my dashboard, it works until I click on anything. When I click, the page flashes and appears to go back to the login page but then goes blank. When I view the page source, the login page code is there. Similar thing happens in design view in Wappler.
Here’s a video. Do I not have something set right in my routing? The stranger thing is that it works fine in Firefox.

Thanks,
Chris

If you have set the debug mode then you should see the error message i the browser’s console log.

What is the error message?

Could it be a security restrict wrongly configured?

Thanks Ben,
Console only has errors about bootstrap failed to load resource map, but that is normal I think. No other errors appear.

Thanks Jon, It is possible. I did have security restrict applied to the content pages. I have been using Firefox as my browser to test during development and everything seemed to work fine. I would be redirected to the login page if my user session was not valid. However when I pulled it up in Chrome, I started to see the issue. I removed the security restrict on all the pages but I still get the redirect in the browser and in the design view.
It’s possible I never did have my security restrict correct as I am not 100% sure on the Node stuff, I did it like I always do using asp.net with the exception of adding it to the Server Side Data on the page. I removed them all though. Where can I look to make sure they have been removed, in the routes.json file?

Yeah. in routes.json you can see all the SC that are run when the route is hit.
Check also in case you have a restrict on an Ajax call -> App Connect Server Connect component.

1 Like

Thanks Jonas, I looked in there and the Server connect security file was still in there under execute even though I had deleted it in the content file. I don’t know if that is a bug or something didn’t get updated correctly. Also it looks like I had some mal-formed html in that login page that I just caught and that made the page go blank.

Thank you @JonL and @ben for helping me out, greatly appreciated.

1 Like