when I started adding Ansible content into new host detail page, I found out the page currently does not support routing for the second level of tabs (tabs within tabs). I believe we should invest our time in having routed subtabs as it is not difficult to achieve and it gives us a good control over the active tabs and therefore content that is displayed. Based on information from @MariSvirik, reflecting tab changes in URL is valuable from a usability point of view.
There is currently no clear consensus on the scheme that we would use. Traditionally, tabs are addressed with
# sign, which we currently have on smart proxies show page and new version of content view pages in lab features. Examples:
# multiple times is not possible so we cannot have
/hosts/:id#tab#subtab. It is possible to use query params instead of the second
# and that is also what RoutedTabs component in Katello mentions, so the resulting URL would be
My personal preference is to replace
# with regular path segments in the same way as the Katello pages currently have it, so we would end up with
/hosts/:id/:tab/:subtab. I have opened a PR which shows how that might look like. There were also suggestions to push
# one level down and have it for the last level of tabs, that is
What do you think we should use?
- something else, I’ll explain in a comment below