# 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:** 4

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 14, 2022, 1:32am UTC](https://meta.discourse.org/t/constructing-web-accessible-links-to-posts-and-topics-programmatically/238888/4 "2022-09-14T01:32:04Z")

</div>

> [@Falco](#):
>
> domain/t/topic\_id/post\_id

I often see `domain/t/-/topic_id/post_id`. Is one preferred?

---

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