Skip to content

Consolidate the duplicate non-localised route tree (app/(protected), app/register, app/document, app/auth) into the [locale] tree #1516

Closed

Description

@mftee

The app has two parallel sets of pages: app/[locale]/... (translated, uses useTranslations) and legacy copies such as app/(protected)/documents/[id], app/(protected)/map, app/(protected)/admin/{users,activity,audit-logs}, app/document/[id], app/register, and app/auth/oauth/callback. The legacy pages hard-code English, use different API helpers, and some are only reachable by accident, so fixes land in one copy and not the other.

Where

  • frontend/app/(protected)/
  • frontend/app/document/[id]/page.tsx
  • frontend/app/register/page.tsx
  • frontend/app/auth/oauth/callback/page.tsx

Suggested fix
Decide the canonical set, move the legacy pages under app/[locale]/(protected)/... (translating strings), delete the duplicates, and add redirects for old URLs in middleware.ts.

Acceptance criteria

  • Each URL is served by exactly one page file
  • Old URLs redirect
  • Middleware tests and e2e smoke pass

Activity

  1. VicSys18 commented on Oct 19, 2026

    @VicSys18

    @VicSys18 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello Maintainer, I would love to be assigned to work on it ASAP. Kindly assign Thanks in advance

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @VicSys18 to this issue.

  2. Remmylof commented on Oct 19, 2026

    @Remmylof

    @Remmylof has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Assign this issue to me please

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Remmylof to this issue.

  3. Diggardson270 commented on Oct 20, 2026

    @Diggardson270
    Contributor

    @Diggardson270 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Can I take this on?

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Diggardson270 to this issue.

  4. drips-wave commented on Oct 20, 2026

    @drips-wave

    Congratulations, @Diggardson270! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @Diggardson270: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  5. grantfox-oss commented on Oct 22, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @Diggardson270's PR #1557 was approved and merged by @mftee.

    🏆 @Diggardson270: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (697 total points). Track your full progress on GrantFox.

    👏 Great work, @Diggardson270! Keep contributing to CodeGirlsInc.

  6. drips-wave commented on Oct 22, 2026

    @drips-wave

    This issue has been completed by @Diggardson270 as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @Diggardson270: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions