Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1901945 - Can't go back to bug number page in the browser history after clicking on the Add reminder button #2258

Merged
merged 5 commits into from
Jun 12, 2024

Conversation

dklawren
Copy link
Collaborator

  • Replaces spaces with + in the needinfo string
  • Use window.location.assign instead of replace so that back button works properly

@dklawren dklawren requested a review from cgsheeh June 12, 2024 14:25
extensions/BugModal/web/bug_modal.js Outdated Show resolved Hide resolved
@dklawren dklawren requested a review from globau June 12, 2024 15:26
}
window.location.replace(`${BUGZILLA.config.basepath}userprefs.cgi?` + query_string);
window.location = `${BUGZILLA.config.basepath}userprefs.cgi?` + query_string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using string concatenation and interpolation isn't ideal; use one or the other (interpolation preferred).

@dklawren dklawren requested a review from globau June 12, 2024 17:42
@@ -918,9 +918,9 @@ $(function() {
query_string += `&bug_id=${BUGZILLA.bug_id}`;
}
if (has_needinfo_from) {
query_string += "&note=Needinfo requested by " + encodeURIComponent(has_needinfo_from);
query_string += "&note=Needinfo+requested+by+" + encodeURIComponent(has_needinfo_from);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: you could do the same thing glob suggested here as well.

@dklawren dklawren merged commit 8c0295a into mozilla-bteam:master Jun 12, 2024
16 of 17 checks passed
@dklawren dklawren deleted the 1901945 branch June 12, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants