Skip to content

Feature Request: Expose Base URL of Netbox object as property of the Obj object #125

@Kramdin-thinklogistics

Description

@Kramdin-thinklogistics

Hi, is it possible to extract and attach the base URL of the Netbox object that is used to generate the QR code so that it can be displayed in the label data? It seems it should be possible since that data is used to generate the QR image?

We like to have the URL contained in the QR image present in human-readable format on the label as well so that they know where the QR will take them and also helpful if working from a device without a camera or where camera is disabled by policy.

Currently I have to hard-code the base-url and append it with {{ obj.get_absolute_url }} in the label text since the other typical Jinja2 & Python methods to retrieve the base URL that I'm aware of return nothing or generate an error at netbox startup.

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