Routes that don't follow the @@ view convention
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Refactor
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- javascript
- Domain
- backend
Research direction
Read docs/how-to-guides/routes.md, packages/cmsui/config/routes.ts, and packages/publicui/index.ts to compare the route convention with the listed routes. The discussion asks maintainers to choose between renaming routes and preserving compatibility paths, and has no settled decision yet. Once that choice is made, update the affected route registrations and guide; done means the agreed routes follow the documented convention while handling the explicitly identified compatibility exceptions.
Written by the indexing model from the issue text.
Description
Our route convention (docs/how-to-guides/routes.md) says views, the routes that render a page, use a @@ prefix, and resource routes use a single @. I checked every route registered on main (apps/aurora/app/routes.ts, @plone/cmsui, @plone/publicui, @plone/contents). These views don't follow it:
| Route | Package | Where |
|---|---|---|
login/* |
cmsui | config/routes.ts |
logout/* |
cmsui | same |
passwordreset, passwordreset/:token |
cmsui | same |
controlpanel (overview), controlpanel/addons, controlpanel/:id |
cmsui | same |
test-layout/* |
cmsui | same |
sitemap |
publicui | index.ts |
search |
publicui | same |
Everything else follows the convention: the @@add, @@edit, @@contents… views, the single-@ resources (@search, @breadcrumbs, @objectBrowserWidget, @layers.css, @reset-fetcher, @@contents/@<action>…), and ok, the health check, which is already the one named exception.
Also: the routes how-to guide uses /login as its example of registering a route, a few lines after stating the convention.
Things to weigh
login,logout,passwordreset,controlpanel, andsitemapare URLs people know from Volto and Classic Plone. Renaming them breaks bookmarks, external links, and muscle memory.search→@@searchwould sit next to the@searchresource. That works, since the prefixes differ, but it's easy to mix up.test-layoutis a leftover scratch page from the Forms work (it renders<div>HELLO</div>inside the CMS UI layout). Nothing links to it or tests it, and it's not needed anymore.
Proposal (from @sneridagh)
- Remove
test-layout, since it's not needed now. passwordresetshould probably get@@.- For the rest there are serious doubts. One option: add
@@counterparts (@@login,@@logout,@@controlpanel,@@sitemap,@@search) and keep the current paths for backwards compatibility, documented as exceptions to the convention.
@pnicolli @davisagli what do you think about these exceptions? Are they worth keeping, should we rename them, or go with @@ counterparts and keep the old paths as BBB?
Assisted-by: Claude Opus 5.5
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 9
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 54
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plone/aurora
-
01 type: bug 41 lvl: easy
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
Edit content TabList: selected tab's icon/label are hidden by its own selection indicator - a11yOpen01 type: bug 99 tag: UX Accessibility
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 2 days
-
01 type: bug 30 needs: triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 2 days
-
01 type: bug 99 tag: UX Accessibility
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
01 type: bug 30 needs: triage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 2 days
Similar issues
-
accessibility bug dark-mode dashboards
Difficulty 1/5 Under an hour Newbie friendliness 84/100
quarto-dev/quarto-cli#15447 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
521xueweihan/HelloGitHub#4655 ·
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount duePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
bug CRIT-3
Difficulty 1/5 Under an hour Newbie friendliness 70/100
NASA-AMMOS/anms#426 ·