Steps to reproduce:
- There is a branch called
6737-trailing-space/auth-fix in this repo: https://github.com/aws-amplify/amplify-js
- On first load, the branch is set correctly:

- If you navigate to a file by clicking on it in Gitako, the branch name is set incorrectly and it breaks:

- Reloading the page fixes it.
Here's the URL to try yourself: https://github.com/aws-amplify/amplify-js/tree/6737-trailing-space/auth-fix