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
Click the second button, which calls page.show("http://localhost:5000/")
Expected result
Active page: Home
Actual result
Active page: Not found
Code
<!DOCTYPE html><htmllang="en-US" dir="ltr"><head><metacharset="utf-8" />
<title>page.js bug demo</title></head><body><buttonid="relative">Navigate to /</button><buttonid="absolute">Navigate to http://localhost:5000/</button><p>Active page: <spanid="active-page"></span></p><scriptsrc="https://unpkg.com/[email protected]/page.js"></script><script>page.configure({window: window});functionshowPage(name){document.querySelector("#active-page").innerText=name;}page("/",()=>showPage("Home"));page("*",()=>showPage("Not found"));page.start();document.querySelector("#relative").addEventListener("click",()=>{page.show("/");// Active page: Home});document.querySelector("#absolute").addEventListener("click",()=>{page.show("http://localhost:5000/");// Active page: Not found});</script></body></html>
Steps to reproduce
npx serve /path/to/that/directory
page.show("http://localhost:5000/")
Expected result
Active page: Home
Actual result
Active page: Not found
Code
Other notes
page.redirect
is usedThe text was updated successfully, but these errors were encountered: