Constructing web accessible links to posts and topics programmatically

domain/t/topic_id/post_id works and will issue a redirect to the canonical URL.