File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export async function navigateToWorkspace(
5252
5353export async function routerGoBack ( ) : Promise < void > {
5454 const router = getRouter ( ) ;
55- router . go ( - 1 ) ;
55+ router . back ( ) ;
5656}
5757
5858const routesBackup : Array < RouteBackup > = [ ] ;
Original file line number Diff line number Diff line change @@ -668,6 +668,10 @@ async function showDetails(): Promise<void> {
668668}
669669
670670async function openEditor(path : FsPath ): Promise <void > {
671+ // Here we want to ensure the router goes back to documents page
672+ // before opening the editor for routing purposes (history stack)
673+ // Could probably be improved with better routing management
674+ // maybe avoiding routing between viewer and editor by loading components directly
671675 await routerGoBack ();
672676 const workspaceHandle = getWorkspaceHandle ();
673677 if (workspaceHandle ) {
You can’t perform that action at this time.
0 commit comments