A platform for community discussion. Free, open, simple.
UX: Hide topic button on manage account page (#35721)
Derek Rushforthc10cf8d42fe5
diff --git a/themes/horizon/javascripts/discourse/components/sidebar-new-topic-button.gjs b/themes/horizon/javascripts/discourse/components/sidebar-new-topic-button.gjsindex 9aade76a8d8..cc18c7aa95d 100644--- a/themes/horizon/javascripts/discourse/components/sidebar-new-topic-button.gjs+++ b/themes/horizon/javascripts/discourse/components/sidebar-new-topic-button.gjs@@ -25,7 +25,7 @@ export default class SidebarNewTopicButton extends Component {get shouldRender() {return (this.currentUser &&- !this.router.currentRouteName.includes("admin") &&+ !this.router.currentURL.startsWith("/admin") &&this.application.sidebarEnabled);}