I can not find Security Provider Enforcer

My pages are as follows(I write only pages which matter this problem).

index.php(1st SPA main page and not restricted)
-signin.php (/signin) (1st SPA content page)
-voting_list.php(/voting/list) (1st SPA content page)

page.php(2nd SPA main page and restricted)
-sethbrogan.php (/voting/vote/sethbrogan) (2nd SPA content page)

I want to redirect, those who visit /voting/vote/sethbrogan by clicking the button on /voting/list, to /singin .

To answer this question, might be yes. Is this possible?

My understanding is the security enforcer can only be added to the parent page so it can’t be used to protect the SPA content page which is effectively protecting the link within it to the content pages.

If someone manually types in the SAP route to bypass this then as it points to a invalid browser page (i.e. only has content but lacks headers etc) it can’t be accessed directly without a 404 error being generated.

Not really sure how you could get around this, if at all. It may be you have to accept the 404 error page in the event of someone effectively trying to hack your content.

I personally am not an SPA expert, there are others here far more knowledgeable about them

1 Like

oh I see…I misunderstood it…

But my question is clear now, thank you so much for leading me to the solution!!

P.S. Love the site, great menu, may have to steal that one day!

1 Like

Thank you so much! I’ll add more functions!!