Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
public access: Fix in-app links to public access option.
Aman Agrawal86a6318d3093
diff --git a/frontend_tests/node_tests/narrow.js b/frontend_tests/node_tests/narrow.jsindex 0d8627e41df..1e93ebe89af 100644--- a/frontend_tests/node_tests/narrow.js+++ b/frontend_tests/node_tests/narrow.js@@ -237,7 +237,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {$(".empty_feed_notice_main").html(),empty_narrow_html("",- 'translated HTML: This stream does not exist or is not <a href="https://zulip.com/help/public-access-option">publicly accessible</a>.',+ 'translated HTML: This stream does not exist or is not <a href="/help/public-access-option">publicly accessible</a>.',),);@@ -251,7 +251,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {$(".empty_feed_notice_main").html(),empty_narrow_html("",- 'translated HTML: This stream does not exist or is not <a href="https://zulip.com/help/public-access-option">publicly accessible</a>.',+ 'translated HTML: This stream does not exist or is not <a href="/help/public-access-option">publicly accessible</a>.',),);page_params.is_spectator = false;diff --git a/static/js/narrow_banner.js b/static/js/narrow_banner.jsindex 688e09babea..214971a4e40 100644--- a/static/js/narrow_banner.js+++ b/static/js/narrow_banner.js@@ -15,8 +15,7 @@ const SPECTATOR_STREAM_NARROW_BANNER = {"This stream does not exist or is not <z-link>publicly accessible</z-link>.",},{- "z-link": (content_html) =>- `<a href="https://zulip.com/help/public-access-option">${content_html}</a>`,+ "z-link": (content_html) => `<a href="/help/public-access-option">${content_html}</a>`,},),};diff --git a/static/templates/login_to_access.hbs b/static/templates/login_to_access.hbsindex 4fb3581d047..9a2a6129554 100644--- a/static/templates/login_to_access.hbs+++ b/static/templates/login_to_access.hbs@@ -11,8 +11,8 @@<p>{{#tr}}Since you are not logged in, you can only view messages in- <z-link>web-public streams</z-link>.- {{#*inline "z-link"}}<a target="_blank" href="https://zulipchat.com/help/stream-permissions">{{> @partial-block}}</a>{{/inline}}+ <z-link>publicly accessible conversations</z-link>.+ {{#*inline "z-link"}}<a target="_blank" rel="noopener noreferrer" href="/help/public-access-option">{{> @partial-block}}</a>{{/inline}}{{/tr}}</p></main>