mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08: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() {
|
||||
return this.currentUser.user_option.external_links_in_new_tab
|
||||
return this.currentUser?.user_option?.external_links_in_new_tab
|
||||
? "_blank"
|
||||
: "_self";
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ import { click, visit } from "@ember/test-helpers";
|
|||
acceptance("Sidebar - Anonymous user - Community Section", function (needs) {
|
||||
needs.settings({
|
||||
navigation_menu: "sidebar",
|
||||
faq_url: "https://discourse.org",
|
||||
});
|
||||
|
||||
test("display short site description site setting when it is set", async function (assert) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user