Jonathan Lahijani Posted May 6 Share Posted May 6 I was dusting off my Awesome ProcessWire repo and updating it with more relevant information. One thing that bothered me is that the various links I have in there to forum posts may have changed, but this forum software correctly forwards it to whatever the latest URL is. While the forum doesn't expose an actual canonical URL for a post, I found this little hack to make it as minimal as possible. Let's say you have this URL: https://processwire.com/talk/topic/29951-weekly-update-%E2%80%93-26-april-2024-%E2%80%93-profields-table-v29/ That bothers my "OCD" and if the post title were to be changed, the URL would change accordingly, but I figured out you can chop off everything after the post ID and following dash and add an extra dash if you want a canonical-like, minimalized URL. It would look like this: https://processwire.com/talk/topic/29951-- (two dashes required) 7 2 Link to comment Share on other sites More sharing options...
netcarver Posted May 6 Share Posted May 6 Nice - I'll be able to make use of that at PWGeeks next time I update it. Thank you for the tip. 3 Link to comment Share on other sites More sharing options...
BrendonKoz Posted May 7 Share Posted May 7 That was likely a conscious decision with their htaccess rules to prevent numerically traversing an entire forum (and instead requires parsing HTML to identify internal hyperlinks, so more processing power on the part of bad bots). Good find though! I much prefer shorter links. ? 1 Link to comment Share on other sites More sharing options...
Recommended Posts