You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
In fact I realized that the unexpected behavior may be expected sometimes.
page("./pageToRedirect") redirects with a page reload => should be kept!
For example, when "login out" a user, it may be required to reload all resources. In my case, page.redirect("./") was perfect because it did not keep the "/logout" page in history and still reloaded resources.
The leading dot behavior should be kept but detailed in the documentation.
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 expectedpage.js/page.js
Line 1005 in 4f99916
The text was updated successfully, but these errors were encountered: