[PR #20127] [CLOSED] return_url for missing prerequisites "Add" button #15829

Closed
opened 2025-12-30 00:24:17 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20127
Author: @9er-tom
Created: 8/19/2025
Status: Closed

Base: developHead: 19990-missing_prerequisite_return_url


📝 Commits (1)

  • 639c5e8 add optional return_url parameter to "Add" button, used by missing_prerequisites.html to return user back to initial page

📊 Changes

3 files changed (+12 additions, -7 deletions)

View changed files

📝 netbox/templates/inc/missing_prerequisites.html (+1 -1)
📝 netbox/utilities/templates/buttons/add.html (+9 -5)
📝 netbox/utilities/templatetags/buttons.py (+2 -1)

📄 Description

Fixes: #19990

add optional return_url parameter to "Add" button, used in missing_prerequisites.html to return user back to initial page after adding an prerequisite object


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20127 **Author:** [@9er-tom](https://github.com/9er-tom) **Created:** 8/19/2025 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `19990-missing_prerequisite_return_url` --- ### 📝 Commits (1) - [`639c5e8`](https://github.com/netbox-community/netbox/commit/639c5e80520d27a4dff48fc8121b45d91c44d398) add optional return_url parameter to "Add" button, used by missing_prerequisites.html to return user back to initial page ### 📊 Changes **3 files changed** (+12 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `netbox/templates/inc/missing_prerequisites.html` (+1 -1) 📝 `netbox/utilities/templates/buttons/add.html` (+9 -5) 📝 `netbox/utilities/templatetags/buttons.py` (+2 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #19990 <!-- Please include a summary of the proposed changes below. --> add optional return_url parameter to "Add" button, used in missing_prerequisites.html to return user back to initial page after adding an prerequisite object --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:24:17 +01:00
adam closed this issue 2025-12-30 00:24:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15829