Project

General

Profile

Actions

Bug #6019

open

Return to same bootstrap tab when redirected from VM deletion

Added by Dominic Cleal almost 10 years ago. Updated almost 6 years ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
VM management
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1102661
Description of problem:
I have thought about simple and usable feature (one JS command) "opening relevant tab depending on URL anchor".
This feature will be able to open (bootstrap) tab after loading page. Anchor will be taken from URL.

This is the JS code:

$('a[href="'+window.location.hash+'"]').tab('show');

Reason:
In some situations, we want to execute some action in one of tabs and a WebUI redirects us to new page, there are only content of previous tab.

Nice example:
When we want delete VM.
1. Open "Compute Resource" > some resource (in my case EC2) > "Virtual Machines".
2. We can see list of machines for this resource.
3. We open detail one of them and click on the button "Delete" (right side of page)
4. We are redirect to page, where is only list of VMs (mising bar of tabs).
We are redirect to https://<fqdn>/compute_resources/1-ec2-resource/vms.

I think that a better way would be to redirect users back to the resource detail and open tab with the list there. (something as https://<fqdn>/compute_resources/1-ec2-resource#vms)

Actions

Also available in: Atom PDF