Skip to content

Commit

Permalink
Minor fixes in breadcrumb URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashwat986 committed Sep 16, 2017
1 parent fd2b7c1 commit 24d618d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/views/folder_item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
},
methods: {
getFolderUrl (key) {
return `${(this.$route.params.path || '/list')}/${key}`;
return `${(this.$route.path || '/list')}/${key}`;
},
addFolder () {
this.$store.commit('addFolderToFolderJSON', {
Expand Down
4 changes: 2 additions & 2 deletions src/js/views/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ module.exports = {
const folderPath = this.$route.params.path;
let root = this.folderJSON.root;
let path = '/';
let path = '';
// TODO: Move to folder_model
if (folderPath) {
for (let key of folderPath.split('/')) {
const child = this.folderJSON.getChild(root, key);
if (child) {
root = child;
path += key;
path += '/' + key;
this.route.push({
name: key,
path
Expand Down

0 comments on commit 24d618d

Please sign in to comment.