Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
help: Open Help Center links in new tab for empty message lists.
Akarsh Jain12db83b01120
diff --git a/web/src/narrow_banner.js b/web/src/narrow_banner.jsindex b9a7d30985b..6ed379a300f 100644--- a/web/src/narrow_banner.js+++ b/web/src/narrow_banner.js@@ -17,7 +17,9 @@ const SPECTATOR_STREAM_NARROW_BANNER = {},{"z-link": (content_html) =>- `<a href="/help/public-access-option">${content_html.join("")}</a>`,+ `<a target="_blank" rel="noopener noreferrer" href="/help/public-access-option">${content_html.join(+ "",+ )}</a>`,},),};@@ -168,7 +170,9 @@ function pick_empty_narrow_banner() {},{"z-link": (content_html) =>- `<a href="/help/star-a-message">${content_html.join("")}</a>`,+ `<a target="_blank" rel="noopener noreferrer" href="/help/star-a-message">${content_html.join(+ "",+ )}</a>`,},),};@@ -181,7 +185,7 @@ function pick_empty_narrow_banner() {},{"z-link": (content_html) =>- `<a href="/help/mention-a-user-or-group">${content_html.join(+ `<a target="_blank" rel="noopener noreferrer" href="/help/mention-a-user-or-group">${content_html.join("",)}</a>`,},diff --git a/web/templates/confirm_dialog/confirm_disable_all_notifications.hbs b/web/templates/confirm_dialog/confirm_disable_all_notifications.hbsindex 91d74ad6ae5..68091be97ea 100644--- a/web/templates/confirm_dialog/confirm_disable_all_notifications.hbs+++ b/web/templates/confirm_dialog/confirm_disable_all_notifications.hbs@@ -5,7 +5,7 @@that require your timely attention.If you would like to temporarily disable all desktop notifications,consider <z-link>turning on "Do not disturb"</z-link> instead.- {{#*inline "z-link"}}<a href="/help/do-not-disturb">{{> @partial-block}}</a>{{/inline}}+ {{#*inline "z-link"}}<a target="_blank" rel="noopener noreferrer" href="/help/do-not-disturb">{{> @partial-block}}</a>{{/inline}}{{/tr}}</p>diff --git a/web/templates/invitation_failed_error.hbs b/web/templates/invitation_failed_error.hbsindex 10eddc7bb8a..e5486cf8348 100644--- a/web/templates/invitation_failed_error.hbs+++ b/web/templates/invitation_failed_error.hbs@@ -28,13 +28,13 @@{{#tr}}To invite users, please <z-link-billing>increase the number of licenses</z-link-billing> or <z-link-help-page>deactivate inactive users</z-link-help-page>.{{#*inline "z-link-billing"}}<a href="/billing/#settings">{{> @partial-block}}</a>{{/inline}}- {{#*inline "z-link-help-page"}}<a href="/help/deactivate-or-reactivate-a-user">{{> @partial-block}}</a>{{/inline}}+ {{#*inline "z-link-help-page"}}<a href="/help/deactivate-or-reactivate-a-user" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}{{/tr}}{{else}}{{#tr}}Please ask a billing administrator to <z-link-billing>increase the number of licenses</z-link-billing> or <z-link-help-page>deactivate inactive users</z-link-help-page>, and try again.{{#*inline "z-link-billing"}}<a href="/billing/#settings">{{> @partial-block}}</a>{{/inline}}- {{#*inline "z-link-help-page"}}<a href="/help/deactivate-or-reactivate-a-user">{{> @partial-block}}</a>{{/inline}}+ {{#*inline "z-link-help-page"}}<a href="/help/deactivate-or-reactivate-a-user" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}{{/tr}}{{/if}}{{/if}}diff --git a/web/tests/narrow.test.js b/web/tests/narrow.test.jsindex 814d2e87a29..b76b6cd0a8a 100644--- a/web/tests/narrow.test.js+++ b/web/tests/narrow.test.js@@ -237,7 +237,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {$(".empty_feed_notice_main").html(),empty_narrow_html("",- 'translated HTML: This is not a <a href="/help/public-access-option">publicly accessible</a> conversation.',+ 'translated HTML: This is not a <a target="_blank" rel="noopener noreferrer" href="/help/public-access-option">publicly accessible</a> conversation.',),);@@ -250,7 +250,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {$(".empty_feed_notice_main").html(),empty_narrow_html("",- 'translated HTML: This is not a <a href="/help/public-access-option">publicly accessible</a> conversation.',+ 'translated HTML: This is not a <a target="_blank" rel="noopener noreferrer" href="/help/public-access-option">publicly accessible</a> conversation.',),);@@ -273,7 +273,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {$(".empty_feed_notice_main").html(),empty_narrow_html("translated: You have no starred messages.",- 'translated HTML: Learn more about starring messages <a href="/help/star-a-message">here</a>.',+ 'translated HTML: Learn more about starring messages <a target="_blank" rel="noopener noreferrer" href="/help/star-a-message">here</a>.',),);@@ -283,7 +283,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {$(".empty_feed_notice_main").html(),empty_narrow_html("translated: You haven't been mentioned yet!",- 'translated HTML: Learn more about mentions <a href="/help/mention-a-user-or-group">here</a>.',+ 'translated HTML: Learn more about mentions <a target="_blank" rel="noopener noreferrer" href="/help/mention-a-user-or-group">here</a>.',),);