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

Browser extension not working when sourcegraphURL has a trailing slash #6521

Closed
lguychard opened this issue Nov 9, 2019 · 6 comments · Fixed by #10443
Closed

Browser extension not working when sourcegraphURL has a trailing slash #6521

lguychard opened this issue Nov 9, 2019 · 6 comments · Fixed by #10443
Assignees
Labels
browser-extension bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. estimate/1d
Milestone

Comments

@lguychard
Copy link
Contributor

Works correctly when there is no trailing slash:
image

Fails with unhelpful hints when there is a trailing slash:
image

We should gracefully handle the URL containing a trailing slash, or at the very least tell the user what the actual issue is.

@lguychard lguychard added bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. browser-extension labels Nov 9, 2019
@felixfbecker
Copy link
Contributor

The options page should use new URL() to validate and canonicalize the URL

@felixfbecker felixfbecker added this to To do in Web Team :: Current iteration via automation Nov 9, 2019
@lguychard
Copy link
Contributor Author

This would also help not mishandling the URL: #3990

@dadlerj
Copy link
Member

dadlerj commented Apr 15, 2020

@lguychard lguychard added this to the 3.16 milestone Apr 28, 2020
@lguychard lguychard mentioned this issue Apr 28, 2020
41 tasks
@dadlerj
Copy link
Member

dadlerj commented May 5, 2020

Just hit by another user at https://app.hubspot.com/contacts/2762526/company/557476528 a moment ago

lguychard pushed a commit that referenced this issue May 6, 2020
Fixes #6521

Avoids building invalid URLs when the base Sourcegraph URL has a trailing slash, across all platforms (browser extension, native integrations).
Web Team :: Current iteration automation moved this from To do to Done May 6, 2020
lguychard pushed a commit that referenced this issue May 6, 2020
Fixes #6521

Avoids building invalid URLs when the base Sourcegraph URL has a trailing slash, across all platforms (browser extension, native integrations).
@lguychard
Copy link
Contributor Author

Fixed in browser extension v20.5.6.835. For native integrations, the fix will roll out in 3.16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser-extension bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. estimate/1d
Projects
No open projects
3 participants