Links to static files in public not working at router depth 2 or more with history router mode #17947
Labels
area/cli
area/components
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-webpack
kind/bug 🐞
mode/spa
Qv2 🔝
Quasar v2 issues
What happened?
Links to files in
/public
do not work when placed on a page that has a router depth of 2 or more whenvueRouterMode
is set to history. For example, make three nested routes with paths/
,/depth1
, and/depth1/depth2
, and place an image on all three pages with the image file in/public
. On the/
and/depth1
pages, the image is shown, but on the/depth1/depth2
page it is not.What did you expect to happen?
I expect the image to be shown on all pages as it was with previous versions of quasar and @quasar/app-webpack (this also happens with recent versions of @quasar/app-vite). I am not entirely certain which packages and versions are at fault in this. I have had trouble locking that down. I know that with [email protected] and @quasar/[email protected] this did not happen.
Reproduction URL
https://stackblitz.com/edit/quasarframework-stackblitz-templates-sfuxxbub
How to reproduce?
Open the "Depth 0 Page", "Depth 1Page", and "Depth 2Page". On the first two pages the image is shown. On the "Depth 2 Page" the image is not, and instead the "alt" text is shown.
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite), SPA Mode, Components (quasar)
Platforms/Browsers
Firefox
Quasar info output
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: