The page variable is only defined on regular 'page' pages created under Blogs & Pages, those pages with a URL that looks like this: /pages/page-handle. The page variable is undefined elsewhere. There's no Liquid variable that will give you the current URL - unfortunately.
↧