Changing the way of calling to the error page. Now using routing instead of url.