Feature #1151

Open Links in New-Window

Added by Marco Tralles almost 9 years ago. Updated about 1 year ago.

Status:NewStart date:2008-05-01
Priority:NormalDue date:
Assignee:-% Done:


Target version:Candidate for next major release


actualy each detetected link in ticet-descriptions or other texts will open in the same window and so the open redmine gets lost. by creating xhtml-sites it's not allowed to use the target-tag - i know - but you can use this kind of javascript-pendant i use also for WAI-compatible sites:

<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.

1151-patch-open-in-a-new-window.diff Magnifier (587 Bytes) Go MAEDA, 2014-12-01 14:18

Related issues

Related to Redmine - Feature #13263: Prevent confusion generated by the top Help link New
Duplicated by Redmine - Feature #3801: Links to external pages should get a target="_blank" attr... Closed 2009-09-01
Blocked by Redmine - Defect #20841: No "external" class when bare url is used in Markdown for... New


#1 Updated by Jean-Philippe Lang almost 9 years ago

  • Target version deleted (0.7.1)

#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.

#3 Updated by Filou Centrinov about 4 years ago

Duplicate: #3801

#4 Updated by Daniel Felix about 4 years ago

Filou Centrinov wrote:

Duplicate: #3801

Indeed. Thanks! I've closed #3801.

#5 Updated by Mischa The Evil about 4 years ago

FWIW: #3801#note-13 (note-13) contains a patch by Filou Centrinov.

#6 Updated by Szabolcs Szasz almost 3 years ago

See the redmine_open_links_in_new_window plugin, which seems to do a good job at this!

#7 Updated by Go MAEDA over 2 years ago

This is a patch to open external links and the help in a new window.

#8 Updated by Go MAEDA over 1 year ago

  • Target version set to Candidate for next major release

#9 Updated by Go MAEDA over 1 year ago

  • Blocked by Defect #20841: No "external" class when bare url is used in Markdown formatter added

#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?

On a side note, if this would be implemented, we could do so without Javascript and just put target="_blank" in the link directly since the target attribute is not deprecated anymore with HTML5.

#11 Updated by Alexander Ryabinovskiy over 1 year ago

You can open any normal link in a new window by clicking the middle mouse button (or Ctrl, as mentioned above). This is a logical and usual behavior. I don't see any problem.

#12 Updated by Anthony Cartmell about 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.

Also available in: Atom PDF