Closed
Bug 1317982
Opened 9 years ago
Closed 9 years ago
Reviewboard URLs lack trailing slash after navigating to filenames, causing broken "download diff" links
Categories
(MozReview Graveyard :: Review Board: DiffViewer, defect)
MozReview Graveyard
Review Board: DiffViewer
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Gijs, Assigned: glob)
Details
Attachments
(1 file)
STR:
1. open e.g. https://reviewboard.mozilla.org/r/84386/diff/9/
2. click a filename
3. click 'download diff' at the top
ER:
you get the diff of version 9
AR:
you get the diff of the latest version
Possible fixes include fixing the filename navigation to not drop the /, and fixing the 'download diff' stuff to deal with URLs without the trailing / (which are, needless to say, also legal and correct etc.).
| Reporter | ||
Comment 1•9 years ago
|
||
(In reply to :Gijs Kruitbosch (PTO Nov. 17-20 inclusive) from comment #0)
> STR:
>
> 1. open e.g. https://reviewboard.mozilla.org/r/84386/diff/9/
> 2. click a filename
Er, so missing bits: the links for the filename claim to point to the same URL as step 1 with the addition of "#n" where n is the index of the filename (so 1 for the first file, 2 for the second, etc.).
However, after clicking such a link, the URL actually ends up being ".../diff/9#n" instead of ".../diff/9/#n" - note that the trailing / has gone missing.
> 3. click 'download diff' at the top
>
> ER:
>
> you get the diff of version 9
>
> AR:
> you get the diff of the latest version
>
>
> Possible fixes include fixing the filename navigation to not drop the /, and
> fixing the 'download diff' stuff to deal with URLs without the trailing /
> (which are, needless to say, also legal and correct etc.).
| Comment hidden (mozreview-request) |
Comment 3•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8812755 [details]
diffviewer: Don't treat in-page file navigation as page navigation (bug 1317982);
https://reviewboard.mozilla.org/r/94386/#review94964
Works for me!
Attachment #8812755 -
Flags: review?(dwalsh) → review+
Pushed by bjones@mozilla.com:
https://hg.mozilla.org/webtools/reviewboard/rev/a85107cd508b
diffviewer: Don't treat in-page file navigation as page navigation ; r=davidwalsh
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•