I am trying to add a router to my paid plans dynamic page (/plans), so that only users that joined with a specific referral code can access a specific plan “ffblissenlaunch”. The plan that I am attempting to gate is at the path plans/f-f-monthly. I am getting the code to properly execute all the way to the return forbidden() in line 15 (I tested using console.log), but It doesn’t actually return forbidden and it allows the user to get through. Code pasted below. Any ideas???
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
HEEELP ! ok() e redirect() into router.js doesn't work | 48 | 1701 | July 15, 2018 | |
Router Shows Forbidden Page and then Change it to OK 200 Response (maybe a BUG) | 1 | 130 | May 7, 2022 | |
Unable to createPlan() | 3 | 82 | April 8, 2024 | |
Routers on dynamic pages | 0 | 174 | May 23, 2019 | |
Wix Experts how can I Redirect on 403 ? | 6 | 748 | March 4, 2021 |