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

Default branch on a repo is not respected in deep links to code #8

Open
evilstickman opened this issue Oct 18, 2017 · 0 comments
Open
Labels

Comments

@evilstickman
Copy link

When a repo is configured with a default branch, that branch is correctly used when indexing content. However, deep links in the code ignore this setting and link to the file and line numbers in the master branch, which may or may not exist. To see this problem in action:

1 - Navigate to http://codesearcher.int.sproutsocial.com/search/?q=oauth_is_valid&case=sensitive#web-app-messaging_github
2 - Click the first link

Currently this is a link to https://github.com/sproutsocial/web-app-engagement/blob/master/application/controllers/support/start.php#L2503, which does not exist. The link should go to the repo's default branch, which is "engagement", and the link should be https://github.com/sproutsocial/web-app-engagement/blob/engagement/application/controllers/support/start.php#L2503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant