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 | |
|---|---|---|---|---|
| Please, post some Router.js code examples that works! | 22 | 2241 | June 5, 2018 | |
| Router Shows Forbidden Page and then Change it to OK 200 Response (maybe a BUG) | 1 | 131 | May 7, 2022 | |
| HEEELP ! ok() e redirect() into router.js doesn't work | 48 | 1708 | July 15, 2018 | |
| Directing Specific User After Logging In | 3 | 174 | June 7, 2018 | |
| Wix-Router Error... I do not understand | 5 | 758 | May 21, 2018 |
