Yannis ROSSETTO (rossettoy)2022-11-17 18:00 gerrit #27243 (Fix request #28299 Absolute links opens a new tab) integrated into Tuleap 14.2.99.25 Connected artifacts Added Fixed in: rel #29213
Tracker Workflow Manager (forge__tracker_workflow_manager)2022-11-17 17:59 request fixed by @vaceletm with git #tuleap/stable/d24beff34ce68c8912549964085a6cbb431253c8. Status changed from Under review to ClosedClose date set to 2022-11-17
Manuel Vacelet (vaceletm)2022-11-17 09:37 I finally got the final answer, as far as I can tell, there is a cache of the page. Just removing $GLOBALS['wgExternalLinkTarget'] = '_blank'; in /usr/share/mediawiki-tuleap-flavor/LocalSettings.Tuleap.php is a first step but the page must be edited, then links are no longer _blank. gerrit #27243 in review. Status changed from New to Under reviewAssigned to changed from None to Manuel Vacelet (vaceletm)
Manuel Vacelet (vaceletm)2022-10-18 15:55 I confirm it works when setting at the very end of LocalSettings.php
Dejan Savuljesku (dsavuljesku)2022-10-13 12:34 i tried this locally, and it works. Please try to put it and the very end of LocalSettings.php, to make sure nothing overrides Also, did you try with links from the default main page? its possible that those have target hardcoded (not sure how that content was created). Try adding [https://google.com] on some random page and test with that link.
Manuel Vacelet (vaceletm)2022-09-19 15:53 I tried: Removing $GLOBALS['wgExternalLinkTarget'] = '_blank'; Setting $GLOBALS['wgExternalLinkTarget'] = false; Both in /usr/share/mediawiki-tuleap-flavor/LocalSettings.Tuleap.php without luck. Links still opens in new tabs
Dejan Savuljesku (dsavuljesku)2022-09-14 11:13 This is controlled by config variable $GLOBALS['wgExternalLinkTarget']. By default its set to _blank, which is why it opens links in new tab (not sure who or why set it like that). To disable it, remove line $GLOBALS['wgExternalLinkTarget'] = '_blank'; from LocalSettings.Tuleap.php or, if not present, set this variable to false.