microsoft / qsharp

Azure Quantum Development Kit, including the Q# programming language, resource estimator, and Quantum Katas
https://microsoft.github.io/qsharp/
MIT License
367 stars 73 forks source link

Playground Tutorial and Documentation links don't work when combined with "Get link" button. #1558

Open ScottCarda-MS opened 1 month ago

ScottCarda-MS commented 1 month ago

Describe the bug

By using the "Get a link to this code" button and the browser refresh button, you can get the playground in a state where the Tutorial and Documentation links don't work as expected.

To Reproduce

  1. Open clean playground state.
  2. Make some noticeable change to the default code.
  3. Click the "Get a link to this code" button. (notice the URL changes)
  4. Refresh the page using the browser refresh button.
  5. Click on one of the Tutorial links. (notice how the URL resets.)

At this point the erroneous behavior is encountered:

Additional Information

This was encountered on the Chrome browser.

DmitryVasilevsky commented 1 month ago

Turns out this has been the case at least since December 18, 2023.