Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 15, 20159 yr What is the equivalent of this now? It seems I can't get ?do=findComment&comment=X to work. In fact a link like topic/416166-34-features-missing-in-40/?do=findComment&comment=2557393 doesn't seem to work in the instance where a post has been moved to another topic either, which I thought it was meant to do. Is this a bug?
June 17, 20159 yr What is the equivalent of this now? It seems I can't get ?do=findComment&comment=X to work. In fact a link like topic/416166-34-features-missing-in-40/?do=findComment&comment=2557393 doesn't seem to work in the instance where a post has been moved to another topic either, which I thought it was meant to do. Is this a bug?http://community.invisionpower.com/topic/416386-equivalent-of-actfindpostpidx/?do=findComment&comment=2558513you mean this little chunk? (it links to OP) ; i guess i am confused by your question. it seems you already have the new goto?
June 17, 20159 yr Author http://community.invisionpower.com/topic/416386-equivalent-of-actfindpostpidx/?do=findComment&comment=2558513you mean this little chunk? (it links to OP) ; i guess i am confused by your question. it seems you already have the new goto?In my intended use case I don't know the topic id. I also know of plenty of posts with the old act=findpost&pid= in it that I would like to ensure is redirected.
June 17, 20159 yr In my intended use case I don't know the topic id. I also know of plenty of posts with the old act=findpost&pid= in it that I would like to ensure is redirected. Can't you just load the post ID to get the topic data?$tid = \IPS\forums\Topic\Post::load( $pid )->topic_id;Then you load $tid now.
June 17, 20159 yr Author Yes sure, but I was expecting there to already be an URL for this redirect available somewhere.
June 23, 20159 yr What is the equivalent of this now? It seems I can't get ?do=findComment&comment=X to work.There are no posts, only comments.Article comments, event comments, topic comments, etc.Where should I be redirected?
June 24, 20159 yr There are no posts, only comments.Article comments, event comments, topic comments, etc.Where should I be redirected? forums_posts`.`pid`
June 26, 20159 yr forums_posts`.`pid`?Topic post = comment.If you have problems with urls you need use rewrite rules
June 26, 20159 yr http://community.invisionpower.com/topic/416386-equivalent-of-actfindpostpidx/?do=findComment&comment=2558513you mean this little chunk? (it links to OP) ; i guess i am confused by your question. it seems you already have the new goto?If you move the post to anonther thread (or split the post to a new thread) the URL does not work anymore. Thats sad because it is the world wide share URL.
July 8, 20159 yr There is none unless you also know the topic ID then you can do:https://community.invisionpower.com/topic/416386-ANYTHINGHERE/?do=findComment&comment=2562614 Maybe the more important question. Why do you need the old format to work? Did something not get converted correctly in your upgrade? I had to write scripts to fix some of my links and rewrite them into the format above. But now that's completed I don't "need" the old format.
July 8, 20159 yr There is none unless you also know the topic ID then you can do: https://community.invisionpower.com/topic/416386-ANYTHINGHERE/?do=findComment&comment=2562614 Maybe the more important question. Why do you need the old format to work? Did something not get converted correctly in your upgrade? I had to write scripts to fix some of my links and rewrite them into the format above. But now that's completed I don't "need" the old format. And what do you do if the parent thread of the post change? Without the thread id the post link would be working forever. With the thread id it is not really a shareable permlink...
July 8, 20159 yr If the link doesn't work after the topic is moved (I've not checked) then it's a bug that should be reported.
July 8, 20159 yr What is the equivalent of this now? It seems I can't get ?do=findComment&comment=X to work. In fact a link like topic/416166-34-features-missing-in-40/?do=findComment&comment=2557393 doesn't seem to work in the instance where a post has been moved to another topic either, which I thought it was meant to do. Is this a bug?Just realised that the topic ID is also not necessary here. See: https://community.invisionpower.com/topic/000-something/?do=findComment&comment=2565193You will be redirected to the post ID. So you don't have to worry about topic ID or title, which makes things weird.
July 8, 20159 yr Just noticed in the post id argument/poll thread that these links break when topics are merged. The share link post should really be a url that can survive merges/moves and work solely on the post id. Something like /do=findForumComment&comment=xxxxx
July 23, 20159 yr from 4.0.11 worked old url! https://community.invisionpower.com/index.php?app=forums&module=forums§ion=findpost&pid=2569264
Archived
This topic is now archived and is closed to further replies.