fix card url

This commit is contained in:
André Weller
2019-05-16 12:06:38 +02:00
parent 2299b2846a
commit afbb171844

View File

@@ -18,8 +18,8 @@ export default {
let currentPath = this.$router.history.current.path
let reference = this.createReferenceTag(this.$props.title)
await this.$copyText(`https://webgems.io${currentPath}/?card=${reference}`)
this.$router.push(`${currentPath}/?card=${reference}`)
await this.$copyText(`https://webgems.io${currentPath}?card=${reference}`)
this.$router.push(`${currentPath}?card=${reference}`)
} catch (e) {
console.error(e);
}