Error Page
-
/web/exception/404.jsp
Put a copy in overrides and edit it there otherwise your changes will be lost when you update Mango.
-
This post is deleted! -
Thanks for answer
-
This post is deleted! -
@jared-wiltshire Hello Jared, when I opened this topic it was for a Mango version 2.8 and it worked. Now I tried to do the same thing on a V3 Mango, I copied in overrides in /web/exceptions/404.jsp that I modified but when someone mistype the address it goes to the original "Page Not Found".
Can you tell me how to make so when someone mistype the address it goes to the page that I customized?
Thanks!
-
@georgestefan Are you talking about the page in the new UI which looks like this?
Its not really possible to change it, I can look at making it possible for the next release.
-
Spoke to soon, you can do it with a user module - https://help.infiniteautomation.com/getting-started-with-a-user-module/
define(['angular', 'require'], function(angular, require) { 'use strict'; var userModule = angular.module('userModule', ['maUiApp']); userModule.run(['$state', ($state) => { const state = $state.get('ui.notFound'); state.template = ` <h1>Sorry we can't find your page</h1> <ma-state-params state-params="stateParams"></ma-state-params> <p>The path {{stateParams.path}} was not found</p> `; }]); return userModule; }); // define
-
@jared-wiltshire I have already a page created, it is a way to redirect to that page?
-
Actually I totally forgot about this setting -
-
@jared-wiltshire Thank you, it is working now!