[PR #12721] [MERGED] Fixes return_url for image attachment #14033

Closed
opened 2025-12-29 23:22:09 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12721
Author: @abhi1693
Created: 5/25/2023
Status: Merged
Merged: 5/31/2023
Merged by: @jeremystretch

Base: developHead: fix/12538-table-return-url


📝 Commits (5)

  • 2bc8a97 fixes return_url for image attachment #12538
  • 83c4e7e simplified conditions
  • 3fc7382 handle nonetype error
  • fd33d3b fixed request check
  • ced4759 Introduce htmx_table template tag for embedding HTMX-backed object tables

📊 Changes

4 files changed (+32 additions, -8 deletions)

View changed files

📝 netbox/netbox/tables/columns.py (+6 -2)
📝 netbox/templates/inc/panels/image_attachments.html (+2 -6)
netbox/utilities/templates/builtins/htmx_table.html (+4 -0)
📝 netbox/utilities/templatetags/builtins/tags.py (+20 -0)

📄 Description

Fixes: #12538

I have added support for parsing return_url from the request in the table if it exists. The old functionality is still retained if the parameter is not provided. I could not find any other clean way of redirecting the user back to where the request was initiated.


🔄 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/12721 **Author:** [@abhi1693](https://github.com/abhi1693) **Created:** 5/25/2023 **Status:** ✅ Merged **Merged:** 5/31/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `fix/12538-table-return-url` --- ### 📝 Commits (5) - [`2bc8a97`](https://github.com/netbox-community/netbox/commit/2bc8a97d8064cfff9ff40f7c70b57d133fd2c7c4) fixes return_url for image attachment #12538 - [`83c4e7e`](https://github.com/netbox-community/netbox/commit/83c4e7e2db1a76bc614df61ebcccc0125823ca8f) simplified conditions - [`3fc7382`](https://github.com/netbox-community/netbox/commit/3fc7382be637e46ddfa90c9b19676480fb8e77a4) handle nonetype error - [`fd33d3b`](https://github.com/netbox-community/netbox/commit/fd33d3b248b0673909dfb4351eb9fcbcb807e336) fixed request check - [`ced4759`](https://github.com/netbox-community/netbox/commit/ced47590b72f97318d07a73d5ee6e0b56c06a886) Introduce htmx_table template tag for embedding HTMX-backed object tables ### 📊 Changes **4 files changed** (+32 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/tables/columns.py` (+6 -2) 📝 `netbox/templates/inc/panels/image_attachments.html` (+2 -6) ➕ `netbox/utilities/templates/builtins/htmx_table.html` (+4 -0) 📝 `netbox/utilities/templatetags/builtins/tags.py` (+20 -0) </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: #12538 <!-- Please include a summary of the proposed changes below. --> I have added support for parsing `return_url` from the request in the table if it exists. The old functionality is still retained if the parameter is not provided. I could not find any other clean way of redirecting the user back to where the request was initiated. --- <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-29 23:22:09 +01:00
adam closed this issue 2025-12-29 23:22:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14033