Skip to content

Commit fd64265

Browse files
committed
feat(frontend:links): update navigation to enter spaces and shares directly instead of selecting them
1 parent f61f09f commit fd64265

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/app/applications/links/services/links.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ export class LinksService {
9696
this.http.get<LoginResponseDto>(`${API_PUBLIC_LINK_ACCESS}/${uuid}`).subscribe((r) => {
9797
this.authService.initUserFromResponse(r)
9898
if (link.space) {
99-
this.router.navigate([SPACES_PATH.SPACES], { queryParams: { select: link.space.name } }).catch(console.error)
99+
this.router.navigate([SPACES_PATH.SPACES, link.space.alias]).catch(console.error)
100100
} else {
101-
this.router.navigate([SPACES_PATH.SPACES_SHARES], { queryParams: { select: link.share.name } }).catch(console.error)
101+
this.router.navigate([SPACES_PATH.SPACES_SHARES, link.share.alias]).catch(console.error)
102102
}
103103
})
104104
} else {

0 commit comments

Comments
 (0)