URLs from AJAX requests#822
|
|
It would be really nice if, when I click on a link that triggers (for example) a tab-change (or something else that happens via AJAX without navigating to a different page), the URL that I navigate to would reflect the action in the URL, so I can send it to someone and they see the same page/action that I do. This almost happens when (for example) I go from http://build.dev:8153/cruise/tab/pipeline/MickeyMouse/RunTests to http://build.dev:8153/cruise/tab/stage/detail/58#tab-failures – the link to tab-failures is good, but when I actually click it, the URL doesn’t keep the location.hash value. http://build.dev:8153/cruise/tab/stage/detail/58#tab-artifacts and http://build.dev:8153/cruise/tab/stage/detail/58#tab-modifications work for me when I type them in (but, annoyingly (and I know this is the browser’s fault) not when I’m already on the http://build.dev:8153/cruise/tab/stage/detail/58 page), but are not discoverable because when I hover over the tab-links, I see javascript:void(0) in the browser status bar where it would normally show me the URL. It would also be really nice if the back button continued to work for the AJAX requests; I think there is a Prototype plugin for this behaviour, but don’t know it that well; I’m more of a jQuery nut :) |
|
|
Hey Pete, Initially the sub tabs of the Job detail page all worked that way. We actually found that for the normal case, this was really annoying for users. They would click back and forth between Modifications and Failures tabs and expect the back button on their browser to send them (in your example) back to the stage activity page. Also, the requirement was raised to be able to stay in the same sub tab as we are looking thru a jobs history. Good news, however. :) We just started playing a story to put a “link directly to this sub tab” link on each tab, so you can email from there. As a short-term workaround, however, all sub tabs (including ones created by you in the config file) have an anchor of #tab-(tabname) that will open that tab. For example, on one of our jobs we have a sub tab named “Emma”. The anchor is #tab-emma. Just add that to the end of a url you want to email somebody and that should send them to the correct tab. Hope this helps, |
|
|
Excellent; thanks! |
