Skip to content

Commit

Permalink
✔ Fix 404
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Nov 23, 2023
1 parent 968ffc1 commit dcfd96d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/fansubid/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<noscript>🎉 Harap Menyalakan JavaScript Untuk Dapat Mengakses Website Ini ✨</noscript>
</div>
<app-root></app-root>
<script src="runtime.5bf1cb80e1af3ac2.js" type="module"></script><script src="polyfills.bbae203fdd01cf64.js" type="module"></script><script src="scripts.25bb5de51afc8a05.js" defer></script><script src="main.2323cd8d7d84c0d0.js" type="module"></script>
<script src="runtime.5bf1cb80e1af3ac2.js" type="module"></script><script src="polyfills.bbae203fdd01cf64.js" type="module"></script><script src="scripts.25bb5de51afc8a05.js" defer></script><script src="main.aff9acec96f448a7.js" type="module"></script>


</body></html>
1 change: 0 additions & 1 deletion dist/fansubid/browser/main.2323cd8d7d84c0d0.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/fansubid/browser/main.aff9acec96f448a7.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/fansubid/browser/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1700736123274,
"timestamp": 1700744660885,
"index": "/index.html",
"assetGroups": [
{
Expand Down Expand Up @@ -42,7 +42,7 @@
"/common.d8bce617857151dd.js",
"/favicon.ico",
"/index.html",
"/main.2323cd8d7d84c0d0.js",
"/main.aff9acec96f448a7.js",
"/manifest.webmanifest",
"/polyfills.bbae203fdd01cf64.js",
"/runtime.5bf1cb80e1af3ac2.js",
Expand Down Expand Up @@ -116,8 +116,8 @@
"/960.1e1fe3434266e9a4.js": "c649bd883373fc66f7e2781d27054b5da57413a3",
"/common.d8bce617857151dd.js": "10c19c81531f40fb2eca2e15ba20582b306d467d",
"/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e",
"/index.html": "b545e7ff2e0604f6b4517c19b33cfae968deb5f4",
"/main.2323cd8d7d84c0d0.js": "7a5f7385a436abfb66e556a6a1be6507ead5f42d",
"/index.html": "47cf9bb44800d53c8899e0ded09b7acc6c3f18f5",
"/main.aff9acec96f448a7.js": "77c3cace41043fc75144c178cfd11c20d354557c",
"/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3",
"/polyfills.bbae203fdd01cf64.js": "a59f17cf29cb649f708d7ec7aa6b7247712859e1",
"/runtime.5bf1cb80e1af3ac2.js": "5357bffaa6b5a483613692a435be89d964b839b1",
Expand Down
2 changes: 1 addition & 1 deletion dist/fansubid/server/main.js

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions src/app/_shared/interceptors/http-response.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ export class HttpResponseInterceptor implements HttpInterceptor {
});
break;
case 404:
this.bs.idle();
this.router.navigate(['/error'], {
queryParams: {
returnUrl: this.activatedRoute.snapshot.parent?.url || '/'
}
});
if (!this.router.url.startsWith('/docs')) {
this.bs.idle();
this.router.navigate(['/error'], {
queryParams: {
returnUrl: this.activatedRoute.snapshot.parent?.url || '/'
}
});
}
break;
case 418:
this.bs.idle();
Expand Down

0 comments on commit dcfd96d

Please sign in to comment.