Skip to content
Snippets Groups Projects
Commit 24e49548 authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

404 handler for rendertron

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