Skip to content

Generated URLs ignore settings.BASE_PATH #37

Description

@lc787

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions