Remove trailing slash from url if it exists

This commit is contained in:
Dmitry Yankowski
2020-02-25 11:32:40 -05:00
parent 4867df5fe8
commit fb0c6d42eb

View File

@@ -25,7 +25,7 @@ export default {
return this.$store.state.postwoman.settings.FRAME_COLORS_ENABLED || false
},
sectionString() {
return `${this.$route.path}/${this.label}`
return `${this.$route.path.replace(/\/+$/, '')}/${this.label}`
},
},