Skip to content

fix(www): broken redirects#4457

Merged
Barsnes merged 1 commit intomainfrom
www-redirects-2901
Jan 30, 2026
Merged

fix(www): broken redirects#4457
Barsnes merged 1 commit intomainfrom
www-redirects-2901

Conversation

@stianmorsund
Copy link
Collaborator

@stianmorsund stianmorsund commented Jan 30, 2026

Summary

When Express serves prerendered React Router pages, URLs pointing to directories without an index, like /no/components/docs/alert cause an infinite redirect loop between the React Router loader and express instead of redirecting to /no/components/docs/alert/overview. Disabling directory redirects in express fixes this by letting React Router handle all the redirect logic

Checks

@changeset-bot
Copy link

changeset-bot bot commented Jan 30, 2026

⚠️ No Changeset found

Latest commit: 1e4e8ab

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

Preview deployments for this pull request:

www - 30. Jan 2026 - 09:59

Copy link
Member

@Barsnes Barsnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome debugging! Thanks a lot <3

@Barsnes Barsnes merged commit 0b03881 into main Jan 30, 2026
9 checks passed
@Barsnes Barsnes deleted the www-redirects-2901 branch January 30, 2026 11:15
Barsnes added a commit that referenced this pull request Feb 4, 2026
commit 1741697
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Wed Feb 4 08:52:17 2026 +0100

    fix(deps): update npm non-major dependencies (#4445)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Oddbjørn Øvernes <oddbjorn.overnes@gmail.com>
    Co-authored-by: Michael Marszalek <mimarz@gmail.com>

commit 850e9cc
Author: Michael Marszalek <mimarz@gmail.com>
Date:   Wed Feb 4 08:32:54 2026 +0100

    docs: new CSS variable/token preview tables (#4395)

    Co-authored-by: Oddbjørn Øvernes <oddbjorn.overnes@gmail.com>

commit 6051733
Author: Marianne Røsvik <marianne.rosvik@digdir.no>
Date:   Wed Feb 4 08:08:36 2026 +0100

    docs: english version of required and optional form fields (#4459)

commit 7ea081e
Author: Frank Dahle <frankdahle@gmail.com>
Date:   Tue Feb 3 13:55:37 2026 +0100

    docs: fixed mispelling (#4462)

commit 0b03881
Author: stianmorsund <stian.rm@gmail.com>
Date:   Fri Jan 30 12:15:32 2026 +0100

    fix(www): broken redirects (#4457)

commit 7276fdb
Author: Oddbjørn Øvernes <oddbjorn.overnes@gmail.com>
Date:   Fri Jan 30 08:52:15 2026 +0100

    chore(www): add dpg-logo to footer (#4452)
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.

2 participants