Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated URLs ignore settings.BASE_PATH #37

Open
lc787 opened this issue Aug 5, 2024 · 0 comments
Open

Generated URLs ignore settings.BASE_PATH #37

lc787 opened this issue Aug 5, 2024 · 0 comments

Comments

@lc787
Copy link

lc787 commented Aug 5, 2024

Plugin-rendered buttons href attribute ignore the BASE_PATH netbox value.

For example, given the base path internal/netbox/, the url of the button "Edit Floorplan" (in the context of /dcim/locations/{some-id}/floorplans/) should be /internal/netbox/plugins/floorplan/floorplans/1/edit/, but instead its /plugins/floorplan/floorplans/1/edit/

I suspect everything is like that, seeing as even the static stuff is broken (static/netbox_floorplan/floorplan/utils.js for example)

I can confirm that other plugins don't have this problem.

FYI I have installed everything correctly running ./manage.py collectstatic before restarting netbox[-rq]

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

No branches or pull requests

1 participant