Basic wixlocation.to issue

I am trying to make a simple text a on-click event that will send a user to my Disclaimer page. I have tried to do this a dozen different ways (other than a button as i just want text) and i can not seem to get this to work. I not much of a coder but i thought i could handle this simple task. Can anyone tell me what i am doing wrong. I have checked this in preview, published, and different browsers.

// For full API documentation, including code examples, visit Velo API Reference - Wix.com
import wixLocation from ‘wix-location’;
$w.onReady( function () {

});

export function Disclaimer_click(event) {
wixLocation.to(“/Disclaimer”);
}

Could you check on the page properties (the wheel), settings, SEO tab, way down that tab, the REAL page name (maybe it´s “disclaimer” instead of “Disclaimer”.

2 Likes

omg i feel like such an idiot. Thank you so very much Giri, that was the issue, the capital “D”. LOL