My addon extends threads controller as well as xf_threads table and has its own route.
My goal is to "override" links to threads in all templates, for example:
link('threads', $threads)
So that conditionally, it can use the correct route and return the overridden link if the thread is the...