Link doesn't link

I have linked an element to another page. It appears to save the connect (link page) so that when i publish and check the connection it should connect. Permissions for the page are members only and i am logged in as a member when i check my published site. Is there a reason why this link fails to initiate ?There is a page loading error in the console so that might have something to do with it
Would appreciate your feedback
Thanks
Adam

just to clarify, when i am redirected to the page that i wish another link to be functional from, its like the link has not saved and i am locked on that page, unless of course i click on the home button, which isn’t part of the process

How are you linking it?

If it is through the Wix Editor link settings itself, then you are better suited going through Wix Support
https://support.wix.com/en/article/linking-a-button-to-a-page
https://support.wix.com/en/article/linking-to-a-dynamic-page
https://support.wix.com/en/about-wix/contacting-wix-support

However, if it is through Wix Corvid, then what code are you using as it should be similar to this below with teh click event handler added through the element’s properties panel.

export function profilebutton_onclick(event) {
wixLocation.to(`/Members/${wixUsers.currentUser.id}`); 
}

Thanks Give me Whiskey you are great. Now i don’t suppose you’d like to help with another question? happy to post a new request. Its about linking dynamic pages. Thanks again

@adcatch02

Again are you linking through the Wix Editor itself or through code?

If trying to do it through Wix Editor then see here.
https://support.wix.com/en/article/request-linking-elements-to-a-dynamic-page-eg-blog-post-or-product-page-on-your-site

If trying to do it through code, then simply give this forum a quick search and previous questions about the same or similar thing can be found along with code examples too, like this one here.
https://www.wix.com/corvid/forum/community-discussion/need-different-links-on-dynamic-pages

Thanks but this really doesn’t make sense and i don’t know if its just me or a wix / browser issue. I have linked one of my pages to another via a button.

In preview mode the button connects to the next page as desired. In preview mode the link associated with that page then connects to my dynamic page.

I’m just finding this very hard to figure out. I have been working on my site since 09:00 this morning its 17:27hrs now :slight_smile:

If you are just trying to link a button to another page like this. https://support.wix.com/en/article/linking-a-button-to-a-page

Then you are better suited going through Wix Support for more help with this issue.
https://support.wix.com/en/about-wix/contacting-wix-support

However note that it is coming up to the weekend now and they will most likely be shut now, however if you are wanting a quick reply then you can always give them a call instead.

As for testing in preview mode, remember that you are viewing that in a emulator window so to speak with admin access and note that not everything works properly as it should in the preview.

Many a times you will need to actually view and test things in a fully published version of your website and this might be a good way to test it here with your own site, as if it is a dynamic members page remember that it might only be accessible to the individual member themselves like a profile page for example.

Like with the export function code in the previous reply…

export function profilebutton_onclick(event) {
wixLocation.to(`/Members/${wixUsers.currentUser.id}`); 
}

This will take all members to the Members page, however then it will take each individual member to their own dynamic profile page with the '${wixUsers.currentUser.id}` part of the code.

It is the same with if you want to link to a specific product page in Wix Stores for an example, to be able to do that you need to publish the website first to be able to get the url of that needed product page, so that you can put it in as a link.

If you have simply out the page settings to view for members only, then the link from the button to another page should work as you are just accessing another page, the only difference being that you have to be a member to have the permissions to access it.

Thanks again, i’m going to give support a call and see if there is something obvious that i’ve missed