Affects:
- Edge 25.10586.0.0 and IE on Windows 10 (Version 1511 (OS Build 10586.104)).
- No repro in Chrome 48
- No repro in Firefox 44
Repro steps:
- Start at URL from list below, e.g.: https://github.com/defunkt/jquery-pjax
- Click
script
directory (or clickCONTRIBUTING.md
file, etc.) - Click back button in browser (or use Alt+Left to go back)
- See the URL is now set to owner/undefined: https://github.com/defunkt/undefined
Bonus: Navigating one step further back and then forward again results in 404 because the incorrect URL is added to the forward history list.
Repo URLs where bug is observed:
Hypotheses:
Error has to do with a code path where there are hyphens in the repo name.
Does not seem affected by whether or not there are spaces in the path name, or whether the path is to a directory or file.
The undefined
in the URL name suggests it is a JS issue, not a browser issue.
e.g. compare navigating from:
- https://github.com/Microsoft/Chakra-Samples to (via click on
ChakraCore Samples
directory): - https://github.com/Microsoft/Chakra-Samples/tree/master/ChakraCore%20Samples and back (via back button or keyboard shortcut):
- https://github.com/Microsoft/undefined
with navigating from:
- https://github.com/defunkt/jquery-pjax to (via click on
CONTRIBUTING.md
file): - https://github.com/defunkt/jquery-pjax/blob/master/CONTRIBUTING.md and back (via back button or keyboard shortcut):
- https://github.com/defunkt/undefined
(Same results regardless of space in the path and regardless of whether navigation was to a file or folder URL.)
Also only affects navigation back to the repo root. Navigating another layer into the code explorer and back does not show an undefined URL.