Skip to content

Commit

Permalink
remove template URL parameter from info tab
Browse files Browse the repository at this point in the history
When navigating to the experiment info tab the template URL parameter persisted. This might be undesirable when the user navigates back and forth between the info and the workspace tab with a default template set. Without persisting template URL parameter the user is always navigated to the default template when switching from the info to the workspace tab.
  • Loading branch information
infacc committed Aug 7, 2023
1 parent a8752b1 commit 2154e36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/components/navbar/navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
</a>

<ng-container *ngIf="(currentExperiment|async) != null">
<a class="navigation-link" mat-button [routerLink]="['/experiments', (experimentId|async), 'info']"
[queryParams]="{template: routeTemplateId}" routerLinkActive="active">
<a class="navigation-link" mat-button [routerLink]="['/experiments', (experimentId|async), 'info']" routerLinkActive="active">
Info
</a>
<a class="navigation-link" mat-button [routerLink]="['/experiments', (experimentId|async), 'workspace']"
Expand Down

0 comments on commit 2154e36

Please sign in to comment.