ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix /:@actor redirection
Chocobozzz698a8c650822
diff --git a/client/src/app/shared/shared-main/router/actor-redirect-guard.service.ts b/client/src/app/shared/shared-main/router/actor-redirect-guard.service.tsindex 49d61f9451..ce185829c4 100644--- a/client/src/app/shared/shared-main/router/actor-redirect-guard.service.ts+++ b/client/src/app/shared/shared-main/router/actor-redirect-guard.service.ts@@ -22,20 +22,15 @@ export class ActorRedirectGuard implements CanActivate {this.channelService.getVideoChannel(actorName).pipe(this.orUndefined())]).pipe(map(([ account, channel ]) => {- if (!account && !channel) {- this.router.navigate([ '/404' ])- return false- }-if (account) {- this.router.navigate([ `/a/${actorName}` ], { skipLocationChange: true })+ return this.router.parseUrl(`/a/${actorName}`)}if (channel) {- this.router.navigate([ `/c/${actorName}` ], { skipLocationChange: true })+ return this.router.parseUrl(`/c/${actorName}`)}- return true+ return this.router.parseUrl('/404')}))}