Skip to content

Broken image URLs in rack view #9634

@AndMrzv

Description

@AndMrzv

NetBox version

v3.2.5

Python version

3.9

Steps to Reproduce

  1. Have device types with front and rear device pictures uploaded and hosted on a separate domain (we use it for static content, let's say https://static.domain/images/front.png)
  2. Have devices installed in a rack
  3. View the rack with https://your.netbox.domain/dcim/racks/$some_id/

Expected Behavior

Front and Rear rack view filled with images of device types of the devices installed to this rack.

Observed Behavior

Blueish tint instead of images because the URLs for images are now prefixed with the netbox domain (like https://your.netbox.domainhttps://static.domain/images/front.png which is obviously unavailable)
Seems like this is caused by #9503. Rack views were fine on 3.1 which we had before the update.
Device type views (https://your.netbox.domain/dcim/device-types/$id/) show images just fine on 3.2.5, links are not broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions