# Doc Sub category -Back to forum loop

**URL:** https://meta.discourse.org/t/doc-sub-category-back-to-forum-loop/367513
**Category:** Bug
**Tags:** doc-categories
**Created:** [May 25, 2025, 6:56am UTC](https://meta.discourse.org/t/doc-sub-category-back-to-forum-loop/367513 "2025-05-25T06:56:35Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [May 25, 2025, 8:55am UTC](https://meta.discourse.org/t/doc-sub-category-back-to-forum-loop/367513/4 "2025-05-25T08:55:07Z")

</div>

I think it’s related to [FEATURE: Add `routeHistory` service, SessionStore service and make `back to forum` button go back to previous page by Grubba27 · Pull Request #32260 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/32260)

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/sidebar/back-to-forum.gjs#L15](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/sidebar/back-to-forum.gjs#L15)

While storing the last non-admin route URL works well for the admin sidebar, it doesn’t work for the doc sidebar. Both URLs #Documentation and #Documentation > Using Discourse aren’t admin URLs.

---

_[View the full topic](https://meta.discourse.org/t/doc-sub-category-back-to-forum-loop/367513)._
