Skip to content

Commit

Permalink
Merge branch 'hotfix/6.6.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmonks committed Sep 22, 2021
2 parents 393efdb + 849281a commit 6f41285
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdm-ui",
"version": "6.6.0",
"version": "6.6.1",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/handlers/security-handler.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class SecurityHandlerService {
// The static page is therefore a landing point so that it can immediately redirect to the correct authentication component
// route and do the real work.
const authorizationUrl = '/redirects/open-id-connect-redirect.html';
const baseUrl = `${window.location.protocol}//${window.location.host}`;
return new URL(authorizationUrl, baseUrl);
const baseUrl = window.location.href.slice(0, window.location.href.indexOf('/#/'));
return new URL(baseUrl + authorizationUrl);
}
}
6 changes: 2 additions & 4 deletions src/static-pages/open-id-connect-redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
<body>
<p>Redirecting back to Mauro Data Mapper...</p>
<script lang="javascript">
const baseUrl = `${window.location.protocol}//${window.location.host}`;
const currentUrl = `#/open-id-connect/authorize${window.location.search}`;
const redirectUrl = new URL(currentUrl, baseUrl);
window.open(redirectUrl.toString(), '_self');
const redirectUrl = window.location.href.replace('/redirects/open-id-connect-redirect.html', '/#/open-id-connect/authorize');
window.open(redirectUrl, '_self');
</script>
</body>
</html>

0 comments on commit 6f41285

Please sign in to comment.