Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/repository/components/breadcrumbs.vue')
-rw-r--r--app/assets/javascripts/repository/components/breadcrumbs.vue10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/assets/javascripts/repository/components/breadcrumbs.vue b/app/assets/javascripts/repository/components/breadcrumbs.vue
index f306910df05..9d6eda55c1e 100644
--- a/app/assets/javascripts/repository/components/breadcrumbs.vue
+++ b/app/assets/javascripts/repository/components/breadcrumbs.vue
@@ -107,10 +107,16 @@ export default {
return acc.concat({
name,
path,
- to: `/-/tree/${this.ref}${path}`,
+ to: `/-/tree/${escape(this.ref)}${path}`,
});
},
- [{ name: this.projectShortPath, path: '/', to: `/-/tree/${this.ref}/` }],
+ [
+ {
+ name: this.projectShortPath,
+ path: '/',
+ to: `/-/tree/${escape(this.ref)}/`,
+ },
+ ],
);
},
canCreateMrFromFork() {