Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Design Tools > Modules > HUBL "Link" & "URL" Fields
SOLVE
Contributor
Jan 27, 2020 4:21 PM
I have created the following code with the href pointing to the variable. The below works with both a "URL" Hubl form and a "LINK " Hubl form. However, when applied to a page and published, they both will open a new tab in the browser. I have the target set to "_blank"
Any and all help is greatly appreciated! Thanks
{% set href = module.url_field.url.href %} <div class="btn_btr_blue"> <a href="{{ href }}" target="_blank"> <p> {{ module.simpletext_label }} </p> </a> </div>
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
1 Accepted solution
Accepted Solutions
Solution
Top Contributor | Diamond Partner
Jan 28, 2020 8:15 PM
Assuming you want it to open in the same window, have you tried this?
target="_self"
rather than
target="_blank"
--
Bryan Schneidewind
Manager of Web Development
Weidert Group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content