Hi Bubblers,
So, i have a little problem for restricting acces to certain pages.
After placing an order within my application the user is redirected to the thank-you-page with an overview of order details.
But right now this thank-you-page is accessible for anyone who uses the adress bar in the browser:
“mydomain.com/thank-you-page”
For user who are not logged in i am able to redirect them.
But how do i accomplish a restriction of acces for logged in users on this page? I just want users to acces this page after they completed their order. Otherwise they see a lot of blank spaces.
I guess i need something like:
Redirect to index
only if
“This url doesn’t contains order’s unique ID”
I just want this page completely protected unless a user has just placed an order. Anyone know how to achieve this?
Thanks in advance!