Updated null to return the original URL as we already check for null before

This commit is contained in:
Rijul Gupta 2019-02-28 11:07:55 +11:00
parent 617458873f
commit ad93e7a6fb

View file

@ -36,7 +36,7 @@ export default {
if (router) {
const current = this.$route;
const route = router.resolve(this.to, current, this.append);
return route ? route.href : null;
return route ? route.href : this.to;
}
return this.to;
}