diff --git a/src/components/DefElement.vue b/src/components/DefElement.vue
index a83ed493a675b2449f686cc75462355d3ceb7640..67bb56f5ca3913aaf3ec3614fa36514670d50a2c 100644
--- a/src/components/DefElement.vue
+++ b/src/components/DefElement.vue
@@ -24,10 +24,15 @@ export default {
     },
     dictionary: String
   },
+  data: function() {
+    return {
+      path: this.$route.fullPath
+    }
+  },
   computed: {
     unparsed: function(){
       let lang = this.dictionary
-      let path = this.$route.fullPath
+      let path = this.path
       return this.body.items.map(
         function(item){
           if      (item.type_ == 'usage') return {type: item.type_, html: item.text, tag: 'mark'}