diff --git a/src/components/views/elements/AppPermission.js b/src/components/views/elements/AppPermission.js index ad697e2df0..369ffeade7 100644 --- a/src/components/views/elements/AppPermission.js +++ b/src/components/views/elements/AppPermission.js @@ -21,7 +21,10 @@ export default class AppPermission extends React.Component { if(searchParams && searchParams.get('url')) { curl = searchParams.get('url'); } - curl = curl || wurl; + if (!curl && wurl) { + wurl.search = wurl.query = ""; + curl = wurl.format(); + } return curl; } @@ -32,7 +35,7 @@ export default class AppPermission extends React.Component {