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
feat(router): move stackiq off hash routing to clean path URLs
Stackiq is one of seven fleet apps still serving its SPA behind a `#`.
This is the pilot for moving all of them: the source change is a single
line, and everything else here is the test surface that assumed hashes.
Verified BEFORE switching, because history mode fails at the SERVER when
the AppHost SPA catch-all is missing (fleet #133 is why apps fell back to
hash in the first place): /apps/stackiq/organisaties, /contracten and
/organisaties/abc-123 all already returned 200 with the app shell, so the
catch-all is present for this app.
What moved with it:
tests/e2e/spec-coverage/_helpers.ts gotoAppRoute built `${APP_BASE}#${route}`
tests/e2e/manifest-pages.spec.ts same URL construction
tests/e2e/spec-coverage/catalog-ratings.spec.ts 2 hash deep-links
tests/e2e/smoke/app-mounts.spec.ts `/stackiq/#/organisaties` -> a real sub-path
The helper docblock explaining vue-router 4's hash-relative `createHref`
is rewritten rather than deleted: the id-based nav selector it defends is
deliberately KEPT, because identifying the nav by a stable handle instead
of an href format the router owns is what makes it survive this change.
Verified in the browser against the published @conduction/nextcloud-vue
(USE_LOCAL_LIB=false):
/apps/stackiq/ -> 200, page id Dashboard, no hash
/apps/stackiq/organisaties -> 200, page id Organisaties, no hash
/apps/stackiq/contracten -> 200, page id Contracten, no hash
RELOAD on /organisaties -> 200, still Organisaties
That reload is the point: it is the case hash mode existed to avoid, and
it is served by the catch-all rather than 404ing. Zero JS errors.
The Playwright smoke project passes on both routes, including the
organisations sub-route now that it is a real path. eslint exits 0 and
webpack compiles.
0 commit comments