mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: anonymous FAQ link to external URL (#20568)
When FAQ url is set to external resource, site is failing for anonymous user.
This commit is contained in:
parent
5e0c95ed83
commit
1c881c1037
@ -39,7 +39,7 @@ export default class SectionLink extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get target() {
|
get target() {
|
||||||
return this.currentUser.user_option.external_links_in_new_tab
|
return this.currentUser?.user_option?.external_links_in_new_tab
|
||||||
? "_blank"
|
? "_blank"
|
||||||
: "_self";
|
: "_self";
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ import { click, visit } from "@ember/test-helpers";
|
|||||||
acceptance("Sidebar - Anonymous user - Community Section", function (needs) {
|
acceptance("Sidebar - Anonymous user - Community Section", function (needs) {
|
||||||
needs.settings({
|
needs.settings({
|
||||||
navigation_menu: "sidebar",
|
navigation_menu: "sidebar",
|
||||||
|
faq_url: "https://discourse.org",
|
||||||
});
|
});
|
||||||
|
|
||||||
test("display short site description site setting when it is set", async function (assert) {
|
test("display short site description site setting when it is set", async function (assert) {
|
||||||
|
Loading…
Reference in New Issue
Block a user