Feature #1151
openOpen Links in New-Window
Added by Marco Tralles over 16 years ago. Updated 9 months ago.
0%
Description
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.
Files
1151-patch-open-in-a-new-window.diff (587 Bytes) 1151-patch-open-in-a-new-window.diff | Go MAEDA, 2014-12-01 14:18 |
Related issues
Updated by William C over 15 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.
Updated by Daniel Felix almost 12 years ago
Updated by Mischa The Evil almost 12 years ago
FWIW: #3801#note-13 (note-13) contains a patch by Filou Centrinov.
Updated by Szabolcs Szasz over 10 years ago
See the redmine_open_links_in_new_window plugin, which seems to do a good job at this!
Updated by Go MAEDA about 10 years ago
This is a patch to open external links and the help in a new window.
Updated by Go MAEDA over 9 years ago
- Target version set to Candidate for next major release
Updated by Go MAEDA about 9 years ago
- Blocked by Defect #20841: Bare URLs in Markdown don't have "external" class added
Updated by Jens Krämer about 9 years 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.
Updated by Alexander Ryabinovskiy about 9 years 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.
Updated by Anthony Cartmell almost 9 years 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.
Updated by Stu West over 7 years 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.
Updated by Matthew Paul over 7 years ago
Quick answer to a couple of people on this thread - "Why not just use the browser option to open links in new window". The reason is that, ideally, you should be able to implement and maintain as much functionality at the enterprise level as possible. So, adding a setting option to 'open EXTERNAL links in new window' would be very good. If you just want to do that a good plugin is here https://github.com/lunakid/external_links_in_new_window which is a fork from an original one that just opened all links in a new window, so that every time you clicked a wiki link it did that.
I didn't know if this had already been solved or added but thought I'd add to this thread as it still seems to be an issue.
Updated by Joan J 9 months ago
Matthew Paul wrote in #note-14:
Quick answer to a couple of people on this thread - "Why not just use the browser option to open links in new window". The reason is that, ideally, you should be able to implement and maintain as much functionality at the enterprise level as possible. So, adding a setting option to 'open EXTERNAL links in new window' would be very good. If you just want to do that a good plugin is here https://github.com/lunakid/external_links_in_new_window which is a fork from an original one that just opened all links in a new window, so that every time you clicked a wiki link it did that.
Anyone has this plugin on version 5.1.2? Since it hasn't been updated over 5 years I don't know if it is still working