Jump to content

How to get a permanent direct link to a forum post?


xchellx

Recommended Posts

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?

  • Like 1
Link to comment
Share on other sites

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.

 

 

  • Upvote 1

midoras signature.gif

Link to comment
Share on other sites

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.

  • Like 1
  • Upvote 1
  • You're a Smart Cookie! 1

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint 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

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.

  • Upvote 1

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint 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

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.

  • Upvote 1
Link to comment
Share on other sites

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).

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...