Skip to content

Commit 813798e

Browse files
authored
Merge pull request #499 from huseyingoztok/Unauthorized-request-cannot-be-redirected-bug-fix-
Unauthorized request cannot be redirected bug fix
2 parents 0e1cbef + 689c071 commit 813798e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

reactjs/src/components/Router/router.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const appRouters: any = [
8585
component: LoadableComponent(() => import('../../components/Logout')),
8686
},
8787
{
88-
path: '/exception',
88+
path: '/exception?:type',
8989
permission: '',
9090
title: 'exception',
9191
name: 'exception',

reactjs/src/scenes/Exception/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class Exception extends React.Component<any, any> {
2121
{ errorCode: '500', errorImg: error500, errorDescription: 'Sorry, the server is reporting an error' },
2222
];
2323

24-
let params = new URLSearchParams(this.props.location.search);
25-
const test = params.get('type');
26-
let error = exception.find(x => x.errorCode === test);
24+
let params = new URLSearchParams(this.props.match.params.type);
25+
const type = params.get('type');
26+
let error = exception.find(x => x.errorCode === type);
2727

2828
if (error == null) {
2929
error = exception[0];

0 commit comments

Comments
 (0)