Commit 24e49548 authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

404 handler for rendertron

parent 489bf1b5
......@@ -8,4 +8,4 @@
i18n="@@page404.backBtnText">Back
to home page</a>
</div>
</div>
\ No newline at end of file
</div>
import { Component, OnInit } from '@angular/core';
import { AppRoutes } from '../../../routes';
import { isRentertron } from '../../../shared/variables';
@Component({
selector: 'app-page-not-found',
......@@ -13,6 +14,10 @@ export class PageNotFoundComponent implements OnInit {
constructor() { }
ngOnInit() {
if (isRentertron) {
window.location.href = 'page-404';
}
}
}
import { geosource } from '../../i18n/traductions';
export const isRentertron = /HeadlessChrome\//i.test(window.navigator.userAgent);
export const scopesResearch = {
all: {
key: 'all',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment