# Is there a recommended way to get the current username from a post?

**URL:** <https://meta.discourse.org/t/is-there-a-recommended-way-to-get-the-current-username-from-a-post/178288>\
**Category:** Development\
**Created:** [February 3, 2021, 4:09pm UTC](https://meta.discourse.org/t/is-there-a-recommended-way-to-get-the-current-username-from-a-post/178288 "2021-02-03T16:09:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**Post date:** [February 3, 2021, 7:01pm UTC](https://meta.discourse.org/t/is-there-a-recommended-way-to-get-the-current-username-from-a-post/178288/3 "2021-02-03T19:01:51Z")

</div>

Thanks, Jay. I definitely need to investigate that option, but I think I didn’t explain myself properly. Here’s the reworded version:

> How to create a post that contains a URL that updates based on who clicks on it?

Is there a way I can query the currently logged in user (and its username)? Sort of like the `/my` route but for the frontend.

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-recommended-way-to-get-the-current-username-from-a-post/178288)._
