StreetGT
Member
Hi folks, I have migrated an old forum that used ForumCo software, we are now running smoothly on XenForo but it's time to fix now the broken anchor links.
So, when I imported all the data, I created an Addon that adds a custom field (old_thread_id) in xf_thread.
Now I want to create a custom route (eg https://url.xpto/oldthread/ID) which is going to redirect to the new XenForo Thread URL based on the old_thread_id.
With this trick I should be able to run a mysql query to replace all the old forum links.
Any tips? I have read about extending Thread and rewritting canonical function.
Best regards
So, when I imported all the data, I created an Addon that adds a custom field (old_thread_id) in xf_thread.
Now I want to create a custom route (eg https://url.xpto/oldthread/ID) which is going to redirect to the new XenForo Thread URL based on the old_thread_id.
With this trick I should be able to run a mysql query to replace all the old forum links.
Any tips? I have read about extending Thread and rewritting canonical function.
Best regards