From 5f0ac0f46aafc01070b03d5cfcf2d53053818af4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 2 Jul 2019 19:17:14 +0900 Subject: [PATCH] Fix #5073 --- src/client/app/common/views/components/url.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/client/app/common/views/components/url.vue b/src/client/app/common/views/components/url.vue index b22a10097d..b1ca3f285c 100644 --- a/src/client/app/common/views/components/url.vue +++ b/src/client/app/common/views/components/url.vue @@ -5,6 +5,9 @@ {{ hostname }} :{{ port }} + {{ self ? pathname.substr(1) : pathname }} {{ query }} {{ hash }} @@ -22,6 +25,7 @@ export default Vue.extend({ data() { const isSelf = this.url.startsWith(local); const hasRoute = isSelf && ( + (this.url.substr(local.length) === '/') || this.url.substr(local.length).startsWith('/@') || this.url.substr(local.length).startsWith('/notes/') || this.url.substr(local.length).startsWith('/pages/')); @@ -54,19 +58,28 @@ export default Vue.extend({