def METHOD_NAME(self, thread, target_post, target_page):
    thread_url = thread.thread_type.get_thread_absolute_url(thread, target_page)
    return redirect("%s#post-%s" % (thread_url, target_post.pk))