I’m currently updating a theme component that’s going to be affected by upcoming core changes in Discourse (Removing support for "template overrides" and mobile-specific templates). In order to retain the customization we had, we need to change the html of the AboutPageUser component - about-page-user.gjs.
Is it possible to override the template in that file?
To change content in the UI, you should use our outlet system. If there isn’t an existing outlet which suits your use-case, then we’re generally happy to accept new outlets via a PR to discourse core.
What are you trying to do here? Add some extra content into AboutPageUser? Or replace the implementation entirely?
אנחנו מנסים להסיר את הקישור מתבנית ה-HTML כאשר המשתמש הנוכחי אינו מחובר. בעבר, היה לנו תנאי לטפל בכך באמצעות דריסת תבנית, אבל לא מצאנו דרך מתאימה ב-API החדש.
Ok, makes sense! To be honest, this sounds like something we should change in Discourse core. Linking to user profiles when they’re hidden to anon doesn’t make sense.
I just merged this commit which removes the user profile links from the topic-list, topic page and about page for anonymous users when hide_user_profiles_from_public is enabled.
Note that this is purely a UX change. Crawlers see a different version of the HTML. The nofollow directive was added to crawler-view user profile links back in January.