xchellx Posted January 12, 2022 Share Posted January 12, 2022 I am continuing work on a plugin. Instead of setting the `IPluginSupportInfo.WebsiteUri` to `https://www.getpaint.net/redirect/plugins.html`, I'd thought to set it to the link to the plugin page instead. However, I realized the page link is linked to the post title, meaning if I change the title, the link will change thus making a unstable temporary link that can change at any time. Is there a way to get a permanent link to a forum post here? Like Reddit's permalink? 1 Quote Link to comment Share on other sites More sharing options...
midora Posted January 12, 2022 Share Posted January 12, 2022 I guess the part behind the topic id is not important and can be changed at any time. So if you link to https://forums.getpaint.net/topic/119242-how-to-get-a-permanent-direct-link-to-a-forum-post and the text behind the 119242 changes it will still work. You can try this. Enter https://forums.getpaint.net/topic/119242-Hello-World on a new webpage. 1 Quote Link to comment Share on other sites More sharing options...
null54 Posted January 12, 2022 Share Posted January 12, 2022 30 minutes ago, xchellx said: Is there a way to get a permanent link to a forum post here? The forum software ignores the full post title when parsing a link, it only looks for the topic id followed by a hyphen and at least one letter. For example, @Ego Eram Reputo's plugin index uses plugin topic links that are formatted like: https://forums.getpaint.net/topic/119242-a If you open that link in a new tab it will show this topic. 1 1 1 Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
xchellx Posted January 12, 2022 Author Share Posted January 12, 2022 @null54 are you sure? https://forums.getpaint.net/topic/118948-txtr-filetype-latest-v110-2021-11-24 -> https://forums.getpaint.net/topic/118948 -> The page you requested does not exist Quote Link to comment Share on other sites More sharing options...
null54 Posted January 12, 2022 Share Posted January 12, 2022 12 minutes ago, xchellx said: are you sure? You also need a dash and at least one letter after the topic id, see the example link I posted above. I edited my previous post to clarify this. 1 Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
otuncelli Posted January 12, 2022 Share Posted January 12, 2022 (edited) You can also use : https://forums.getpaint.net/index.php?showtopic=119242 which would work even if "url rewrite engine" or "url aliasing" was disabled on server/forum configuration. Edited January 12, 2022 by otuncelli 1 Quote Link to comment Share on other sites More sharing options...
MJW Posted January 12, 2022 Share Posted January 12, 2022 6 hours ago, null54 said: The forum software ignores the full post title when parsing a link, it only looks for the topic id followed by a hyphen and at least one letter. I've long wondered about the title-change issue with links. I'm glad someone finally asked the question I should have asked. 1 Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 13, 2022 Share Posted January 13, 2022 13 hours ago, xchellx said: Instead of setting the `IPluginSupportInfo.WebsiteUri` to `https://www.getpaint.net/redirect/plugins.html`, I'd thought to set it to the link to the plugin page What happens if the forum moves or is rehosted?* Answer: your link will be broken. This is the reason we use redirection. If Rick moves the forum, we need only change the redirection destination. Every plugin using it is automatically updated with the change of one URL. * It's not out of the realms of possibility. Many old-timers will remember when the forum used to be on a platform called Forumer (some prehistoric links can still be found here). 1 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.