remove trailing slash

This commit is contained in:
André Weller
2019-05-16 09:41:52 +02:00
parent 11b95fb82b
commit 28edb6de80

View File

@@ -23,7 +23,7 @@ export default {
let currentPath = this.$router.history.current.path
let reference = this.$props.title.replace(/ /g, '').toLowerCase()
await this.$copyText(`https://webgems.io${currentPath}/#${reference}`)
await this.$copyText(`https://webgems.io${currentPath}#${reference}`)
window.location.replace(`https://webgems.io${currentPath}#${reference}`)
// this.$router.push(`${currentPath}#${reference}`)