š(Bug) Browser Back after creating a doc reopens /docs/new and creates another doc
Maintainers usually reply within 3 days
@tridev-tej is already working on this.
Since Nov 23, 2026.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 86/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
The issue points to src/frontend/apps/impress/src/pages/docs/new/index.tsx, lines 34ā39. Read redirectToDoc and check how it updates browser history after creating a document. Done means Back returns to the page that opened āNew docā without creating another document.
Written by the indexing model from the issue text.
Description
After creating a doc with the "New doc" button, the browser Back button lands on /docs/new instead of the previous page, so a new document is created again and the user is sent forward to it: every Back press creates one more doc. The /docs/new page stays in the history because it redirects with router.push:
https://github.com/suitenumerique/docs/blob/2fa8605366600249c70fd9ab56c89ffc4852b5a5/src/frontend/apps/impress/src/pages/docs/new/index.tsx#L34-L39
Suggested fix: use router.replace in redirectToDoc, so /docs/new is swapped for the doc in the history and Back goes to the page that held the button (the login redirect on the same page already uses window.location.replace).
- Dominant language
- TypeScript
- Stars
- 17k
- Forks
- 705
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 47
Getting set up
- Ships a 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 suitenumerique/docs
-
š(Bug) Helm chart is published from a push to any branch, not only mainPossibly taken @RoeeSivan claimed this 1 day ago. OpenAI generated CI helm
Difficulty 1/5 Under an hour Newbie friendliness 78/100
suitenumerique/docs#3049 Ā·
Maintainers usually reply within 3 days
-
š(Bug) Preview comment missing when a PR is opened or labelled with a conflictPossibly taken @RoeeSivan claimed this 1 day ago. OpenCI preview
Difficulty 1/5 Under an hour Newbie friendliness 90/100
suitenumerique/docs#3039 Ā·
Maintainers usually reply within 3 days
-
AI generated frontend
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
suitenumerique/docs#3030 Ā· 1 comment Ā·
Maintainers usually reply within 3 days
-
š(Bug) Block menu shows an orphan separator on blocks without colors (math, diagram)Possibly taken @arxh80 claimed this 7 days ago. Openfrontend good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
suitenumerique/docs#3021 Ā· 1 comment Ā· 1 assignee Ā·
Maintainers usually reply within 3 days
-
frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
suitenumerique/docs#3018 Ā· 1 comment Ā·
Maintainers usually reply within 3 days
All issues in suitenumerique/docs
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
bug triage:in-progress
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
e2e-failure ready-to-code
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
redhat-developer/rhdh-plugin-export-overlays#4845 Ā· 1 comment Ā·
Maintainers usually reply within 1 day
-
chore kaizen ui-rewrite
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
IBM/mcp-context-forge#7681 Ā·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cloudflare/workers-sdk#17159 Ā·
Maintainers usually reply within 1 day