Here is my task I want to solve:
-User logs in to their profile (using just Wix's login system)
-They attempt to access a staff page (All staff members are users on the website, but not all users are staff members)
-If they are staff members, they can access the page
- If not, they can't access it
Now I've already "solved" the problem using a simple redirect. I query the database that checks their email against an email of all staff members. It works decently, but if you type in the address, you see the page momentarily even if you're not logged in.
I was told I could use routers, but honestly I don't know a ton about routers. Also, all the tutorials seem to be for building dynamic pages. Most of these staff pages are not dynamic, but are static. Any help? The attempt I have to start working with routers, I'm getting "cannot access backend" errors.