-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DPC-1178 Added redirect for new password reset url (#25)
* DPC-1178 added redirect for new password reset url * DPC-1178 added javascript to manage the redirect * DPC-1178 fixing gemfile.lock error * DPC-1178 added layout to redirect page * DPC-1178 added user confirmation redirect page
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: User Confirmation Redirect | ||
permalink: /users/confirmation | ||
id: user-confirmation-redirect | ||
layout: default | ||
--- | ||
|
||
<script> | ||
const baseURL = 'https://sandbox.dpc.cms.gov/users/confirmation' | ||
const params = new URLSearchParams(window.location.search); | ||
const redirectURL = baseURL + '?' + params.toString() | ||
window.location.replace(redirectURL) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: User Password Reset Redirect | ||
permalink: /users/password/edit | ||
id: user-password-redirect | ||
layout: default | ||
--- | ||
|
||
<script> | ||
const baseURL = 'https://sandbox.dpc.cms.gov/users/password/edit' | ||
const params = new URLSearchParams(window.location.search); | ||
const redirectURL = baseURL + '?' + params.toString() | ||
window.location.replace(redirectURL) | ||
</script> |