Skip to content

2.0.1 - #263

Merged
volarname merged 2 commits into
mainfrom
develop
Aug 17, 2026
Merged

2.0.1#263
volarname merged 2 commits into
mainfrom
develop

Conversation

@volarname

Copy link
Copy Markdown
Contributor

Patch release: temporary redirects from the pre-2.0.0 singular route paths, so links to admin-dam
held by common-admin and admin-cms stop 404-ing.

Release notes: doc/changelog/2.0.1.md

Contains #262.

volar and others added 2 commits August 17, 2026 12:46
2.0.0 pluralized every route path and added no redirect layer, so links to
admin-dam held by other apps 404. A search through common-admin and admin-cms
turned up three paths that are still linked from outside:

- /asset/:id — built by DamAdminAssetLink.vue in common-admin, rendered by
  admin-cms (audio widget, audio/video embed dialogs), by common-admin itself
  (image detail dialog) and inherited by admin-ugc.
- /asset/file/:id — asset-file detail, linked from an external library.
- /user/:id/edit — admin-cms DAM_USER_EDIT_URL_TEMPLATE, opened by
  SystemUserEditButton.vue. Its value lives in .env, every developer's
  .env.local, the generated public/config.json and the deployment pipeline
  variables, so it outlives a single code change.

They are added with router.addRoute() and re-added inside the handleHotUpdate
callback, because a hot update replaces the generated routes and drops anything
added at runtime. Redirect targets are route names rather than paths so the
anzu-local/valid-route-name lint rule fails loudly if a page file is renamed,
instead of the shim silently redirecting to a 404.

Verified by navigating a memory-history router: all three redirect to the plural
path with params, query and hash preserved, and the plural paths are unaffected.

The shim is temporary; the TODO in src/router/legacyRedirects.ts lists what has
to change before it can be removed.
…ects

fix: redirect the pre-2.0.0 singular route paths (#85491)
@volarname
volarname merged commit afd1611 into main Aug 17, 2026
2 checks passed
@volarname
volarname deleted the develop branch August 17, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant