Router code not executing

Hi,

I’m attempting to get my router code to work and am having no success. The steps I’ve taken:

  1. Added router page “foo”
  2. Added the “foo” page router code below
  3. Navigating to “foo” page with the following button on-click event code:

export function myProfile_click(event, $w) {
WixLocation.to(/foo/Ash);
}

What am I missing??

Here is my configuration:

Hi,

I was able to connect a router in a similar way to what you described and it worked.
If it still doesn’t work, please provide details about your site (url, for example) so I can take a deeper look.

Thanks,

Itay Koren

Thanks Itay, here’s the URL:

https://jim07424.wixsite.com/

Hi,

I’m afraid the URL is not full…
There should be something after wixsite.com .

Itay

Apologies - here’s the correct URL: https://jim07424.wixsite.com/parsley2