# Constructing web accessible links to posts and topics programmatically

**URL:** <https://meta.discourse.org/t/constructing-web-accessible-links-to-posts-and-topics-programmatically/238888>\
**Category:** Development\
**Created:** [September 13, 2022, 3:58pm UTC](https://meta.discourse.org/t/constructing-web-accessible-links-to-posts-and-topics-programmatically/238888 "2022-09-13T15:58:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [September 13, 2022, 4:05pm UTC](https://meta.discourse.org/t/constructing-web-accessible-links-to-posts-and-topics-programmatically/238888/2 "2022-09-13T16:05:48Z")

</div>

> [@balazswmann](#):
>
> what’s the “correct” way to construct a web accessible URL for a post or a topic?

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

---

_[View the full topic](https://meta.discourse.org/t/constructing-web-accessible-links-to-posts-and-topics-programmatically/238888)._
