Doc Sub category -Back to forum loop

When a Doc Category has Sub Category that is also setup as a Doc Category. When you click on “Back to Forum” it keeps you in the Doc category sidebar. It doesn’t move up to the parent doc category and will not return to regular sidebar.

This is present here on Meta.

Steps to reproduce:

Additional

1 Like

What Dan says is very true :detective: :bug: :magnifying_glass_tilted_left:

I get this too, nice catch :clap:

1 Like

Thanks

Discovered it on my site ti.mi g tedyd passed fully updated ss of today. So tested here

Interesting bug to say the least. Guessing this is a recent change or would have been discovered sooner.

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

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.

1 Like

Definitely not good. Think it is just better instead to use the browser back button for the admin scenario :woman_facepalming::wink:

Though they could likely modify that to be specific to admin URLs.

This also affects doc sidebar topic links creates the bounce loop as well. Do this commit feature breaks doc categories completely in terms of the sidebar; back to forum