Checklist
Describe the bug
When your root (non-admin) app is rooted at /something, the admin app's AJAX lookup endpoint is at /something/admin/...
However, in the generated UI, the actual requests are sent to /admin/... and fail.
It's because the code that generates these URLs doesn't take into account any root path prefix:
view.ajax_lookup_url = urljoin(
self.base_url + "/", f"{view.identity}/ajax/lookup"
)
Steps to reproduce the bug
No response
Expected behavior
No response
Actual behavior
No response
Debugging material
No response
Environment
MacOS, Python 3.13, SQLAdmin 0.23.0
Additional context
No response
Checklist
master.Describe the bug
When your root (non-admin) app is rooted at /something, the admin app's AJAX lookup endpoint is at /something/admin/...
However, in the generated UI, the actual requests are sent to /admin/... and fail.
It's because the code that generates these URLs doesn't take into account any root path prefix:
Steps to reproduce the bug
No response
Expected behavior
No response
Actual behavior
No response
Debugging material
No response
Environment
MacOS, Python 3.13, SQLAdmin 0.23.0
Additional context
No response