microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
699 stars 581 forks source link

Clicking Back button in the browser from a MakeCode project doesn't go back to project list/home page #5678

Open microbit-grace opened 1 month ago

microbit-grace commented 1 month ago

Describe the bug Clicking Back button in the browser from a MakeCode project doesn't go back to project list/home page. It takes a couple clicks to go back and it doesn't go to the MakeCode homepage/project list.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://makecode.microbit.org/ (homepage)
  2. Create a new project or navigate to an existing project
  3. Click "Back" in the browser

Current behavior

  1. The browser remains in the same page, only the URL changes
  2. Click the "Back" in the browser again
  3. The browser navigates back to a page before the original navigation to the homepage in step 1.

Expected behavior Clicking "back" once from the project should navigate to the MakeCode homepage.

Desktop:

Smartphone: