How can I achieve this on my own Discourse instance? I dont want - Meta Discourse or - My Website Name from showing in these resolved links.
Thanks!
UPDATE
I have changed the links above to better represent my question.
SOLVED
The reason why the Meta Discourse link does not show - Meta Discourse and my website link does, is because my website link is for a category, while the meta.discourse link is for a topic as @supermathie has pointed out.
To combat this issue on my own website, I will simply use [My Category](https://MyWebsite.com/t/MyCategory) markdown to avoid it adding the - My Website Name to the end of it. as @Heliosurge has pointed out.
[This topic post#1](https://meta.discourse.org/t/how-to-remove-website-name-links-shared-in-a-topic-post/257646?u=heliosurge)
You can also do this to the link
[This topic post#1](https://meta.discourse.org/t/
/257646)
If internal you can shortner it to this.
[This topic post#1](/t/
/257646)
I think he was looking to strip the link down if not mistaken to bare minimum. My final shortened link is handy as it also prevents an issue if the client changes domain name breaking the links.
In a perfect world, I was hoping for a checkbox to untick [ ] Exclude Website Name from Internal Category links
This perfect world solution would prevent other users who post https://MyWebsite.com/t/MyCategory (without markdown - [Text](link)) and having it resolve to Category - My Website Name
So although @heilyatsitepoint solution does not solve the issue for other users posting category links without markdown, it will at least solve the issue for when I make posts (since I will always use the markdown).
For the remaining of other users posts…I may just have to turn a blind eye…or edit their post and add the markdown for them. - Yes, I have a little bit of OCD lol.
This is kind of what I was wondering… since we exclude the site name from intra-site topic links, we may want to also exclude the site name from intra-site category links.
I should mention there’s another way of doing this that might suit you: feature (#feature) gives you a direct link to the category.
I love that feature! I was worried that if someone was to right click and copy the link it would copy /t/ /257646 but it will actually still copy the entire URL which is great for those who right click and share outside of the forum. Win-Win :).
This handy if your also considering a domain change as all links that use site domain in the l8nk will break. A client decided to change from “.ai” to “.com” had to fix some important links manually and any post with images still requored using the wrench to rebuild html o fix image displays in posts.
I agree, I feel its irrelevant to have the site name shown within the same site.
Imagine if every Google Search result included - Google to the end of the title lol.
It is however useful to retain the site name for outside links though.
That’s a very nifty feature (still requires the need to educate others who post on my website, but great for personal use…and those who actually read documentation lol).
I tried that on my website, but it just created a bolded #Category it does not include the nice folder icon. Is that a theme component?
Oh, I switched my domains, but just did a remap function in the console which is basically Find & Replace all URL instances to the new domain to fix broken links.