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
If there is already some static html occupying a path, access using url on the page won't trigger custom route matching in my app. For example, a static html file is put at path /post/hello.html, and this will make route matching arm Route::Post unmatchable
What if you go to http://127.0.0.1:8080/post/hello without .html suffix? You're not getting a .html file, so the extension is not needed
Without .html suffix will match the /post/:id case. Why it cannot be matched with .html suffix?
I just wonder if the route won't be respected when there is a static file matching the routing path. @hamza1311
Problem
If there is already some static html occupying a path, access using url on the page won't trigger custom route matching in my app. For example, a static html file is put at path
/post/hello.html
, and this will make route matching armRoute::Post
unmatchableSteps To Reproduce
git clone https://github.com/sammyne/yew-router-path-cannot-captured cd yew-router-path-cannot-captured
http://127.0.0.1:8080/post/hello.html
,and check log in Console of DevTools.Expected behavior
See logs
post id=hello.html
in ConsoleScreenshots
Environment:
wasm32-unknown-unknown
trunk
The text was updated successfully, but these errors were encountered: