-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new template tag which hyperlinks an object, but opens in a new tab when clicked. #5560
Comments
Can you give some examples of use cases where you'd want the template to "force" this behavior, rather than giving the user the option to select "Open link in new tab" on their own when that's what they desire? |
@glennmatthews I am mostly concerned with the first use case, but provided a second one for conversation sake. Use cases
|
* Added new templatetag to resolve #5560 * Removed kwargs from hyperlinked_object and fixed formatting * Added new function to build hyperlinks and renamed new filter --------- Co-authored-by: Glenn Matthews <[email protected]>
* Added new templatetag to resolve nautobot#5560 * Removed kwargs from hyperlinked_object and fixed formatting * Added new function to build hyperlinks and renamed new filter --------- Co-authored-by: Glenn Matthews <[email protected]>
As ...
P.D. - Plugin Developer
I want ...
I want a template tag similar to
hyperlinked_object
which adds thetarget="_blank"
attribute.nautobot/nautobot/core/templatetags/helpers.py
Line 46 in 594743b
So that ...
The hyperlinked object opens in a new tab.
I know this is done when...
I add a hyperlinked object using the new template tag and the object opens in a new tab.
Optional - Feature groups this request pertains to.
Database Changes
No database change required
External Dependencies
No new dependencies required
The text was updated successfully, but these errors were encountered: