Add a "hostname" <meta> tag to the page header #10708

Closed
opened 2025-12-29 21:35:03 +01:00 by adam · 0 comments
Owner

Originally created by @bctiemann on GitHub (Jan 28, 2025).

Originally assigned to: @bctiemann on GitHub.

NetBox version

v4.2.2

Feature type

Change to existing functionality

Proposed functionality

To aid in monitoring and troubleshooting, add a <meta> tag to the <head> of the base HTML page reflecting the value of settings.HOSTNAME, which was removed in NetBox v4.0.

<meta name="hostname" content="{{ settings.HOSTNAME }}" />

Use case

Internal monitoring of NetBox instances in the cloud use the hostname to verify ingress routing. It is not necessary to show the hostname visibly on the login page or other pages, but a <meta> tag that can be machine-read is a good solution.

Database changes

N/A

External dependencies

N/A

Originally created by @bctiemann on GitHub (Jan 28, 2025). Originally assigned to: @bctiemann on GitHub. ### NetBox version v4.2.2 ### Feature type Change to existing functionality ### Proposed functionality To aid in monitoring and troubleshooting, add a `<meta>` tag to the `<head>` of the base HTML page reflecting the value of `settings.HOSTNAME`, which was removed in NetBox v4.0. ` <meta name="hostname" content="{{ settings.HOSTNAME }}" />` ### Use case Internal monitoring of NetBox instances in the cloud use the hostname to verify ingress routing. It is not necessary to show the hostname visibly on the login page or other pages, but a `<meta>` tag that can be machine-read is a good solution. ### Database changes N/A ### External dependencies N/A
adam added the status: acceptedtype: featurecomplexity: low labels 2025-12-29 21:35:03 +01:00
adam closed this issue 2025-12-29 21:35:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10708