From dfbccaa19570caa9bc64cff88ba30b6afed911e2 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 12 Mar 2025 00:36:32 -0600 Subject: [PATCH] Update Profile component, rewrite local profile urls --- resources/assets/components/Profile.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/assets/components/Profile.vue b/resources/assets/components/Profile.vue index f526109e4..27f4159e7 100644 --- a/resources/assets/components/Profile.vue +++ b/resources/assets/components/Profile.vue @@ -131,6 +131,9 @@ // this.fetchPosts(); // this.isLoaded = true; this.fetchRelationship(); + if(this.cachedProfile && this.cachedProfile.local) { + window.history.pushState({}, '', `/${this.cachedProfile.acct}`); + } } else { this.curUser = window._sharedData.user; this.fetchProfile(); @@ -164,6 +167,10 @@ this.owner = false; this.fetchRelationship(); } + + if(res.data && res.data.local) { + window.history.pushState({}, '', `/${res.data.acct}`); + } }) .catch(err => { this.$router.push('/i/web/404');