Skip to content

Commit

Permalink
fix: routes are not remembered when refreshing the app (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin authored Sep 8, 2022
1 parent 4ea5a20 commit ae4dad5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/workbench/browser/build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class appPlatformBuilder {
return json;
}
executeBuild() {
execSync('ng build -c production --base-href ./', { stdio: 'inherit' });
execSync('ng build -c production --base-href ', { stdio: 'inherit' });
}
}
class PlatformBuilder {
Expand Down
2 changes: 1 addition & 1 deletion src/workbench/browser/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const routes: Routes = [
},
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
imports: [RouterModule.forRoot(routes, { useHash: true })],
exports: [RouterModule],
})
export class AppRoutingModule {}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';



import { ExtensionDetailComponent } from './detail/extension-detail.component';
import { ExtensionListComponent } from './list/extension-list.component';
import { ExtensionComponent } from './extension.component';
Expand Down

0 comments on commit ae4dad5

Please sign in to comment.