In my website I have some dynamic pages and I noticed when I finish the first version that was hard to integrate them into the website.
I found this code here in the forum:
import wixLocation from ‘wix-location’;
$w.onReady(function () {
wixLocation.to (“/proxEventos/”);
})
It worked fine, however just in the administrator version. For all the members it is not working and showing an error 403 or 404.
have you ever experienced one issue like this of the code working only on admin version and how could I solve this problem.
Please help me,
thanks so much
best,
JJ
Then it is a security / permission issue. The 403 says permission denied. So what permission is setup on the page /proxEventos ? I think admin only and that is the reason they get that error.
Hello, Could you just let me know if I am doing it wrong… I have been trying this with the admin I see 404, with other passwords I see 403.
I check the permission and it seems that is open for everyone, however it is not working yet
look these prints
thank you very much!!!
@emaildojoaoh im with the same problema.
Its happens when we try to access a dynamic page without logged in.
Im looking for some way to make a “Public” Page, that people only make a log in on checkout
The issue with the above link is that they are trying to access the static url part only of the dynamic page url. They needed to add the dynamic part of the url after that static url part.
Have a look at this tutorial for a simple members profile page which creates two dynamic members profile pages for each member.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area
You will notice on the first dynamic page they have done the link above in their code, however it is followed up by a dynamic bit in the {ID), in this tutorial it is highlighted as a ID block.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area#profile-page
So like this Yoursitehere.com
The same with the second dynamic page for the update profile page where they add the /Update/{ID}.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area#profile-page
Take your test with it.
Use this site in your browsers bar…
https://www.wix.com/corvid/feature/dynamic-pages
It will load up fine and you can use it to get lots of info about dynamic pages.
However, try deleting the dynamic-pages part of the url and you get what the forum user originally had in their wix location to link…
https://www.wix.com/corvid/feature/
it won’t load up, you will get the 404 error screen.