mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Fixes #3857: Fix group custom links rendering
This commit is contained in:
parent
770f4c962c
commit
74997a18a5
@ -10,6 +10,7 @@
|
|||||||
* [#3589](https://github.com/netbox-community/netbox/issues/3589) - Fix validation on tagged VLANs of an interface
|
* [#3589](https://github.com/netbox-community/netbox/issues/3589) - Fix validation on tagged VLANs of an interface
|
||||||
* [#3853](https://github.com/netbox-community/netbox/issues/3853) - Fix device role link on config context view
|
* [#3853](https://github.com/netbox-community/netbox/issues/3853) - Fix device role link on config context view
|
||||||
* [#3856](https://github.com/netbox-community/netbox/issues/3856) - Allow filtering VM interfaces by multiple MAC addresses
|
* [#3856](https://github.com/netbox-community/netbox/issues/3856) - Allow filtering VM interfaces by multiple MAC addresses
|
||||||
|
* [#3857](https://github.com/netbox-community/netbox/issues/3857) - Fix group custom links rendering
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -68,8 +68,9 @@ def custom_links(obj):
|
|||||||
text_rendered = render_jinja2(cl.text, context)
|
text_rendered = render_jinja2(cl.text, context)
|
||||||
if text_rendered:
|
if text_rendered:
|
||||||
link_target = ' target="_blank"' if cl.new_window else ''
|
link_target = ' target="_blank"' if cl.new_window else ''
|
||||||
|
link_rendered = render_jinja2(cl.url, context)
|
||||||
links_rendered.append(
|
links_rendered.append(
|
||||||
GROUP_LINK.format(cl.url, link_target, cl.text)
|
GROUP_LINK.format(link_rendered, link_target, text_rendered)
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
links_rendered.append(
|
links_rendered.append(
|
||||||
|
Loading…
Reference in New Issue
Block a user