From b68b2f7389c3c28d311f60193b049b4edd63bdc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Weller?= Date: Sat, 15 Jun 2019 00:17:58 +0200 Subject: [PATCH] fix routing issue? --- components/Card.vue | 7 ++++--- pages/javascript/index.vue | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/components/Card.vue b/components/Card.vue index 0514712..289bf23 100644 --- a/components/Card.vue +++ b/components/Card.vue @@ -15,10 +15,11 @@ export default { async createCopyUrl() { try { 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); } @@ -37,7 +38,7 @@ export default { ? 'card--active' : '' } - } + }, }, } diff --git a/pages/javascript/index.vue b/pages/javascript/index.vue index 1739c3a..765eb25 100644 --- a/pages/javascript/index.vue +++ b/pages/javascript/index.vue @@ -69,7 +69,7 @@ export default { url: 'https://learnjavascriptfast.com/' }, { - title: 'ECMAScript 6 ', + title: 'ECMAScript 6', desc: 'ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009.', url: 'https://github.com/lukehoban/es6features#readme' },