diff options
Diffstat (limited to 'app/assets/javascripts/repository/components/breadcrumbs.vue')
-rw-r--r-- | app/assets/javascripts/repository/components/breadcrumbs.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/repository/components/breadcrumbs.vue b/app/assets/javascripts/repository/components/breadcrumbs.vue index 9d6eda55c1e..751565ad542 100644 --- a/app/assets/javascripts/repository/components/breadcrumbs.vue +++ b/app/assets/javascripts/repository/components/breadcrumbs.vue @@ -45,7 +45,7 @@ export default { currentPath: { type: String, required: false, - default: '/', + default: '', }, canCollaborate: { type: Boolean, @@ -107,7 +107,7 @@ export default { return acc.concat({ name, path, - to: `/-/tree/${escape(this.ref)}${path}`, + to: `/-/tree/${escape(this.ref)}${escape(path)}`, }); }, [ @@ -133,7 +133,7 @@ export default { }, { attrs: { - href: `${this.newBlobPath}${this.currentPath}`, + href: `${this.newBlobPath}/${this.currentPath ? escape(this.currentPath) : ''}`, class: 'qa-new-file-option', }, text: __('New file'), @@ -242,7 +242,7 @@ export default { <template slot="button-content"> <span class="sr-only">{{ __('Add to tree') }}</span> <icon name="plus" :size="16" class="float-left" /> - <icon name="arrow-down" :size="16" class="float-left" /> + <icon name="chevron-down" :size="16" class="float-left" /> </template> <template v-for="(item, i) in dropdownItems"> <component :is="getComponent(item.type)" :key="i" v-bind="item.attrs"> |