-
Notifications
You must be signed in to change notification settings - Fork 28
Mounting at "/" doesn't work #33
Copy link
Copy link
Closed
Description
Describe the bug
When I mount CRUDAdmin at a custom path (for example /dashboard):
admin = CRUDAdmin(mount_path="/dashboard")- The default mount path
/adminworks correctly, but any custom mount path (such as/dashboard) causes 404s for all internal links, navigation, and redirects. - Redirects after login, as well as sidebar navigation, all use the correct custom path prefix but still result in 404 errors.
To Reproduce
- Mount CRUDAdmin at a custom path, e.g.:
admin = CRUDAdmin(mount_path="/dashboard")- Start your application and open
/dashboardin your browser. - Log in or click on any model/resource in the admin UI.
- Observe that
/dashboard/User/(and other internal URLs) result in 404 Not Found errors.
Expected behavior
CRUDAdmin should fully support being mounted at any custom path (not just /admin).
All internal URLs, links, and redirects should work when using a custom mount path and should not result in 404 errors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels