Access a variable on a Site tab from within a Page

Note: it should be wixLocation.to NOT wixLocation.url. But, as you see below, the result is the same – still not defined error.