Skip to content

Conversation

@timothywashburn
Copy link

@timothywashburn timothywashburn commented Dec 29, 2025

Details

The required trailing slash is likely inconsequential in the majority of cases, however specifically when bootstrapping the project and using /if/flow/initialsetup/ it seems there are many people including myself (see this comment) that have mistakenly not included the trailing slash and are not used to the URLs /if/flow/initialsetup and /if/flow/initialsetup/ being handled differently.

This change is made by swapping path() to re_path() to regex the pattern with and without the trailing slash.

It is worth mentioning that this is essentially the default behavior with APPEND_SLASH=True but this was previously disabled for other reasons (#6928).


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

@timothywashburn timothywashburn requested a review from a team as a code owner December 29, 2025 05:50
@netlify
Copy link

netlify bot commented Dec 29, 2025

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 129b596
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/695216af3d3aac000818b55a
😎 Deploy Preview https://deploy-preview-19091--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
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.28%. Comparing base (7300737) to head (129b596).
⚠️ Report is 16 commits behind head on main.
✅ All tests successful. No failed tests found.

❗ There is a different number of reports uploaded between BASE (7300737) and HEAD (129b596). Click for more details.

HEAD has 5 uploads less than BASE
Flag BASE (7300737) HEAD (129b596)
e2e 9 8
unit 10 8
unit-migrate 10 8
Additional details and impacted files
@@             Coverage Diff             @@
##             main   #19091       +/-   ##
===========================================
- Coverage   93.37%   83.28%   -10.10%     
===========================================
  Files         949      949               
  Lines       52254    52254               
===========================================
- Hits        48794    43520     -5274     
- Misses       3460     8734     +5274     
Flag Coverage Δ
conformance 38.78% <100.00%> (+<0.01%) ⬆️
e2e 44.08% <100.00%> (-0.61%) ⬇️
integration 23.38% <0.00%> (-0.06%) ⬇️
unit 80.87% <100.00%> (-10.73%) ⬇️
unit-migrate 81.16% <100.00%> (-10.48%) ⬇️

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

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

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.

1 participant