Open Links in New-Window
|Target version:||Candidate for next major release|
<a href="http://www.any-target-domain.tld" onclick="window.open(this.href); return false;" title="external link">www.any-target-domain.tld</a>
it would be helpfull if this behavior will be added to redmine.
#2 Updated by William C over 7 years ago
For open link in new window - it seems the following code should work, but it doesn't in Redmine. The code does work on the following Textile page: http://textile.thresholdstate.com/
<a href="http://ad.com"; target="_blank">http://ad.com</a>
When I use it in redmine, the notextile tags do not appear, but the <a href...> appears inline.
#10 Updated by Jens Krämer over 1 year ago
Every browser I can think of has a feature to open links in a new tab and/or window (i.e. Ctrl-Click). Why should we take away the possibility to actually open the link in the same tab / window without gaining anything?
target="_blank" in the link directly since the
target attribute is not deprecated anymore with HTML5.
#12 Updated by Anthony Cartmell over 1 year ago
Yes, if you remember you can hold down Ctrl or Shift (depending on browser) to get a new tab. But I work with lots of different browsers, and regularly forget to do this (I use a Wacom pen, so middle-mouse is tricky).
I know not everyone wants all external links to open in a new tab, but it would certainly be very welcome as an option here. By it's nature Redmine is a site I want to keep open in a tab forever, and I never want links external to the Redmine to open in the Redmine tab replacing my issue tracker.
#13 Updated by Stu West about 1 month ago
I agree that this would be an extremely helpful feature. It's true that I can open links in a new tab by using command-click (or other OS-specific option) but it's extremely annoying every time I forget to do this. I think the ideal solution would be an ability to toggle
target="_blank" as a sitewide default in the settings plus an ability to add it to or remove it from individual links via Textile formatting.