Framework7 router doesn't seem to properly work. The URL remains unchanged when navigating via links. And entering in a URL doesn't navigate to the correct page.
To Reproduce
Steps to reproduce the behavior:
Use the Framework7 CLI to create a starter: Framework7-React, Capacitor app, Tabbed views, Vite, CSS, include icons, no custom build.
Start the application
In the app, click on the bottom tabs. The URL will remain unchanged.
Enter in a known route from ./src/js/routes.js into the URL (ex. /settings/).
Expected behavior
When clicking on the tabs below, the page and URL should change accordingly. For example, clicking on Settings should change the URL to /settings/. Likewise, manually entering /settings/ into the URL should navigate to the Settings page.
Actual Behavior
Locally, the page changes when a tab is pressed, but the URL remains unchanged. If the user enters a URL into the URL bar, the page refreshes to the current page and not the intended page.
Deployed on Vercel, the page also changes when a tab is pressed, but the URL remains unchanged. If the user enters a URL into the URL bar, a Vercel-404 page appears (ie. not the Framework7 404 page defined in ./src/pages/404.jsx).
Screenshots
Additional context
Also tried with PWA and Single View config but same issue.
Describe the bug
Framework7 router doesn't seem to properly work. The URL remains unchanged when navigating via links. And entering in a URL doesn't navigate to the correct page.
To Reproduce
Steps to reproduce the behavior:
./src/js/routes.js
into the URL (ex./settings/
).Expected behavior
When clicking on the tabs below, the page and URL should change accordingly. For example, clicking on Settings should change the URL to
/settings/
. Likewise, manually entering/settings/
into the URL should navigate to the Settings page.Actual Behavior
Locally, the page changes when a tab is pressed, but the URL remains unchanged. If the user enters a URL into the URL bar, the page refreshes to the current page and not the intended page.
Deployed on Vercel, the page also changes when a tab is pressed, but the URL remains unchanged. If the user enters a URL into the URL bar, a Vercel-404 page appears (ie. not the Framework7 404 page defined in
./src/pages/404.jsx
).Screenshots
Additional context
Also tried with PWA and Single View config but same issue.