Skip to content

web: Flip the user interface to path-based routing - #25007

Merged
GirlBossRush merged 13 commits into
mainfrom
web/router-user-flip
Sep 10, 2026
Merged

GirlBossRush merged 13 commits into
mainfrom
web/router-user-flip

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Details

This PR flips /if/user/ from the legacy hash router to path-based routing on the router core. initRouter({ interfaceName: "user" }) runs at boot, user/Routes.ts becomes a URLPattern route table (/library, /requests, /settings, /agents), and <ak-router-outlet> gives way to <ak-router-view>. Library search persists as a real ?q= param, and the settings, MFA, source, and admin-wizard deep links are rebuilt with the base-path-aware toUserInterface / toAdminInterface helpers.

One fixture fix rides along: SessionFixture's password locator now matches exactly, because the flow's "Show password" toggle also answers to getByLabel("Password") and was breaking every e2e login.

Stacked on #24032.

Testing

110-user-routing e2e: 6/6 — deep load, history, ?q= persistence, legacy-hash shim, and cross-interface full load. Unit tests, lint-check, and lint:types clean.

@netlify

netlify Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 05da9f5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6aa209bb31f16700081cf134
😎 Deploy Preview https://deploy-preview-25007--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 05da9f5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6aa209bb31f16700081cf139
😎 Deploy Preview https://deploy-preview-25007--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 05da9f5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aa209bb47dd4b0008d09185
😎 Deploy Preview https://deploy-preview-25007--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.82%. Comparing base (890d740) to head (e1ec1be).
⚠️ Report is 35 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25007      +/-   ##
==========================================
- Coverage   91.86%   91.82%   -0.04%     
==========================================
  Files        1169     1169              
  Lines       75451    75451              
  Branches     4054     4054              
==========================================
- Hits        69310    69286      -24     
- Misses       6099     6123      +24     
  Partials       42       42              
Flag Coverage Δ
conformance 33.75% <ø> (+<0.01%) ⬆️
e2e 38.44% <ø> (+<0.01%) ⬆️
integration 30.42% <ø> (-0.04%) ⬇️
rust 42.92% <ø> (ø)
unit 93.41% <ø> (+<0.01%) ⬆️
unit-migrate 93.44% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@GirlBossRush
GirlBossRush force-pushed the web/router-user-flip branch 2 times, most recently from f5cd4f1 to 8d08cb1 Compare August 21, 2026 16:45
@GirlBossRush
GirlBossRush force-pushed the web/router-user-flip branch 2 times, most recently from 34d56b9 to e476c5d Compare August 24, 2026 23:56
@GirlBossRush
GirlBossRush force-pushed the web/router-user-flip branch 2 times, most recently from 6f0f257 to f00ae8c Compare August 26, 2026 22:49
@GirlBossRush
GirlBossRush force-pushed the web/router-user-flip branch 2 times, most recently from 480f3a9 to 46f267e Compare September 8, 2026 14:17
Base automatically changed from web/router-view to main September 8, 2026 23:11
@GirlBossRush
GirlBossRush force-pushed the web/router-user-flip branch 2 times, most recently from d67bf2e to 0a16265 Compare September 9, 2026 00:15
@GirlBossRush
GirlBossRush force-pushed the web/router-user-flip branch 3 times, most recently from 7ab49af to 05da9f5 Compare September 10, 2026 01:36
Teffen Ellis and others added 3 commits September 10, 2026 14:18
The legacy router read `#/settings;page-sources` as a tab selector, but the
shim fed the bare token to URLSearchParams, producing a valueless key that
serialized away — so the tab was silently dropped. Decode it to the `page`
parameter instead, which is what ak-tabs reads.

This keeps the source-linking redirect in flow_manager.py landing on the
Sources tab while it still emits the legacy hash form.
@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-e1ec1be68f8846549da9fe454fbfe494f7cae1d7
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-e1ec1be68f8846549da9fe454fbfe494f7cae1d7

Afterwards, run the upgrade commands from the latest release notes.

@GirlBossRush
GirlBossRush merged commit 13c750b into main Sep 10, 2026
144 checks passed
@GirlBossRush
GirlBossRush deleted the web/router-user-flip branch September 10, 2026 14:19
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