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

Tycho: Prevents duplicate back navigation on page reload #1190

Merged
merged 2 commits into from
Mar 13, 2023

Conversation

sabieber
Copy link
Member

@sabieber sabieber commented Mar 10, 2023

Bug scenario:

  1. Opening /system/jobs in a new tab
  2. Selecting a job from the list that has required parameters
  3. Trying to start the job without any parameters
  4. Reloading the page
  5. ⚡ Chrome would jump back to the jobs list instead of staying on the job page

Previously working behaviour in FireFox:

Bildschirm­foto 2023-03-10 um 14 21 39

Previously broken behaviour in Chrome:

Bildschirm­foto 2023-03-10 um 14 21 48

Fixes: SIRI-716

Chrome has some weird behaviour where it completes running all code of the current execution context (everything that wasn't postponed by setTimeout or async calls).
This introduced a bug in the tycho history handling where a reload on a job error page (and similar scenarios) would actually jump all the way back to the previously open page (e.g. the jobs overview page).
We now use a simple flag to ensure the appendHistoryUrl logic does not get executed when we previously issued a back navigation in the on page load section of the history handling.

Fixes: SIRI-716
Fixes: SIRI-716
@sabieber sabieber added the 🐛 Bugfix Contains only a small fix for an existing bug label Mar 10, 2023
@sabieber sabieber merged commit 8933a09 into develop Mar 13, 2023
@sabieber sabieber deleted the feature/sbi/SIRI-716 branch March 13, 2023 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bugfix Contains only a small fix for an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants