SMF Support > SMF 2.0.x Support
Short post links
(1/1)
Kolya:
Usually a link to a post looks like this:
http://www.domain.com/index.php?topic=834.msg7473#msg7473
This link is rather long. More importantly if this post receives a new topic ID by being split off into a new thread or merged with another thread, this link will break.
A while ago I noticed that a link to a post can also be as short as this:
http://www.domain.net/?msg=7473
SMF translates this shorthand version to the long link. As this link retains no topic information it will still be translated to the correct topic even after a split/merge action.
My question is: How costly is this translation in terms of server performance? Because that's the only downside of he short link version I can think of.
Arantor:
Well, the way it's implemented is to redirect the msg, so it will load a decent amount of SMF, then perform that redirect, and then do it all again. So there is a performance impact but if you don't do it all that often it's not a *huge* deal.
Kolya:
Thanks, that's good to know.
I was considering to replace all generated post links with the short version to make life easier for my users. Probably not a good idea then, depending on how often these links are being clicked.
Navigation
[0] Message Index
Go to full version