Skip to content

Commit 9960e2e

Browse files
authored
Merge pull request #107 from pengz1/Update-url-location-strategy
Update head icon path and app-routing location strategy
2 parents 1195e1b + 3813214 commit 9960e2e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

config/head-config.common.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ module.exports = {
2626
/**
2727
* <link> tags for favicons
2828
*/
29-
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/assets/icon/favicon.ico' },
30-
{ rel: 'icon', type: 'image/png', sizes: '96x96', href: '/assets/icon/favicon.ico' },
31-
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/assets/icon/favicon.ico' },
29+
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: 'assets/icon/favicon.ico' },
30+
{ rel: 'icon', type: 'image/png', sizes: '96x96', href: 'assets/icon/favicon.ico' },
31+
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: 'assets/icon/favicon.ico' },
3232

3333
/**
3434
* <link> tags for a Web App Manifest
3535
*/
36-
{ rel: 'manifest', href: '/assets/manifest.json' }
36+
{ rel: 'manifest', href: 'assets/manifest.json' }
3737
],
3838
meta: [
3939
{ name: 'msapplication-TileColor', content: '#00bcd4' },
40-
{ name: 'msapplication-TileImage', content: '/assets/icon/ms-icon-144x144.png', '=content': true },
40+
{ name: 'msapplication-TileImage', content: 'assets/icon/ms-icon-144x144.png', '=content': true },
4141
{ name: 'theme-color', content: '#00bcd4' }
4242
]
4343
};

src/app/app-routing.module.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import { ROUTES } from './app.routes';
1111
imports: [
1212
RouterModule.forRoot(ROUTES, {
1313
//If we don't want to use hash mode, we need to change RackHD
14-
useHash: Boolean(history.pushState) === true,
14+
// useHash: Boolean(history.pushState) === true,
15+
useHash: true,
1516
preloadingStrategy: PreloadAllModules
1617
// enableTracing: true
1718
})

0 commit comments

Comments
 (0)