Skip to content

Parsing Issue of the url when its clicked and the result breaks the page

Created by: amberfurbush0317

  • Sourcegraph version: 3.34.2, also Sourcegraph.com
  • Platform information: Chrome Version 103.0.5060.134

Steps to reproduce:

  1. Conduct this search and click on the first result, the URL should be: https://sourcegraph.com/github.com/rails/rails/-/blob/railties/lib/rails/generators/rails/plugin/templates/%25name%25.gemspec.tt
Screen Shot 2022-08-02 at 11 56 48 AM
  1. Instead the result you get it's:

https://sourcegraph.com/github.com/rails/rails/-/blob/railties/lib/rails/generators/rails/plugin/templates/%name%.gemspec.tt?subtree=true

Expected behavior:

Once you click on the search, it should just be:

https://sourcegraph.com/github.com/rails/rails/-/blob/railties/lib/rails/generators/rails/plugin/templates/%25name%25.gemspec.tt

Once you click on the results it should show the following details:

Screen Shot 2022-08-18 at 12 22 23 PM

Actual behavior:

When conducting the search on the URL it should be the following:

https://sourcegraph.com/github.com/rails/rails/-/blob/railties/lib/rails/generators/rails/plugin/templates/%25name%25.gemspec.tt

Instead, when you click on the URL, you get a malformed URI error and it breaks the page.

Screen Shot 2022-08-02 at 11 56 08 AM (2)

If would like immediate help on this, please email [email protected] (you can still create the issue, but there are not SLAs on issues like there are for support requests).

/cc @benvenker @lguychard