Can't go back to bug number page in the browser history after clicking on the "Add reminder" button
Categories
(bugzilla.mozilla.org :: General, defect)
Tracking
()
People
(Reporter: pascalc, Assigned: dkl)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
STR:
1 Go to a bug number like https://bugzilla.mozilla.org/show_bug.cgi?id=1894968
2 Click on the "Add reminder" button -> https://bugzilla.mozilla.org/userprefs.cgi?tab=reminders&bug_id=1894968
3 Go back to https://bugzilla.mozilla.org/show_bug.cgi?id=1894968 by clicking on the back button n your browser
ER:
Land to https://bugzilla.mozilla.org/show_bug.cgi?id=1894968
AR:
Land on the page I was before https://bugzilla.mozilla.org/show_bug.cgi?id=1894968
https://github.com/mozilla-bteam/bmo/blob/842c7a6cb850c0e259ffb7a2acf17d9f7240bd71/extensions/BugModal/web/bug_modal.js#L923 is the problem; it should be assigning to location.href
not calling location.replace()
.
Also, this function is async
unnecessarily, and query strings shouldn't contain spaces:
- query_string += "¬e=Needinfo requested by " + encodeURIComponent(has_needinfo_from);
+ query_string += "¬e=" + encodeURIComponent("Needinfo requested by " + has_needinfo_from);
Assignee | ||
Updated•16 days ago
|
Comment 2•15 days ago
|
||
Assignee | ||
Comment 3•15 days ago
|
||
Description
•