Would it be possible to parse the path and remove the leading dot in the url if any ?
Indeed, having a leading dot cause the page to reload. I have seen some people having the same issue.
page("./pageToRedirect") redirects with a page reload.
page("/pageToRedirect") works as expected
|
function page(path, fn) { |