fix(repository): make sure to uri encode branch so / and the like are escaped@@ -1,5 +1,5 @@
{
- "_generatedAtUnix": 1664217744066,
+ "_generatedAtUnix": 1664464335694,
"_hashAlgorithm": "sha1",
"_version": 2,
"islands": {
@@ -90,7 +90,7 @@
"pathSource": "./app/views/repository/RepositoryCreateView.tsx"
},
"RepositoryDetailsView": {
- "hash": "6d8dac91e8da067600573d2021bff68813683046",
+ "hash": "43bfe4e1c66a3f53b2d396146f5f11bf7a6d6405",
"pathSource": "./app/views/repository/RepositoryDetailsView.tsx"
},
"RepositoryExploreView": {
@@ -181,7 +181,7 @@ const RepositoryDetailsView: ReactView<RepositoryDetailsViewProps> = ({
branch.trim() != "" && (
<React.Fragment key={branch}>
<a
- href={`/${parentOrg.slug}/${repo.slug}/${branch}/tree/`}
+ href={`/${parentOrg.slug}/${repo.slug}/${encodeURIComponent(branch)}/tree/`}
>
{branch}
</a>