Deleting or editing one of my branch redirects to the wrong place

Bug #372846 reported by Barry Warsaw
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

I visit one of my branches, such as https://code.edge.launchpad.net/~barry/launchpad/372773-noteam because I want to delete the branch. I click on the trash can, and then confirm the deletion by clicking on the Delete button.

When the operation is completed, I'm left on the https://code.edge.launchpad.net/launchpad page, i.e. the project page, when I really should be left on the https://code.edge.launchpad.net/~barry page.

Tags: lp-code
Revision history for this message
Barry Warsaw (barry) wrote :

Similarly, if I edit the status of said branch, I end up on the branch's page once the edit is complete, however there's no easy path back to code/~barry. I'm left in the Launchpad context, so clicking on the [Code] tab sends me to Launchpad's code page, while clicking on [Barry Warsaw] gets me to my own overview page. It's several clicks then to get back to where I wanted to be (and where I came from).

summary: - canonical_url() is wrong after deleting one of my branch
+ canonical_url() is wrong after deleting or editing one of my branch
summary: - canonical_url() is wrong after deleting or editing one of my branch
+ Deleting or editing one of my branch redirects to the wrong place
affects: launchpad → launchpad-code
Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 372846] [NEW] Deleting or editing one of my branch redirects to the wrong place

Unfortunately the code isn't psychic. Since branches effectively have two
contexts, the owner and the associated target (project or source package), we
have to choose where to send the user back to when the branch is deleted.
Unless we have some form of session history to tell us where the user came
from, we have chosen to go back to the target location. This is more
consistent with the navigation that is now associated with branches.

Revision history for this message
Paul Hummer (rockstar) wrote :

This also bugs me, but I would say what Tim said. :)

Changed in launchpad-code:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Jonathan Lange (jml) wrote :

So why isn't this "wontfix"?

Revision history for this message
Curtis Hovey (sinzui) wrote :

I want to remind everyone that Edwin did write the RedriectMixin to solve cases like this. It is used in many places.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.