Fix to let tpa_hint url have ? instead of &

Now the url could also be of the form
?next=/dashboard?tpa_hint=oa2-google-oauth2
to be backward compatible with old url.

VAN-42
This commit is contained in:
Adeel Khan
2021-02-19 03:39:06 +05:00
parent e37b8e5cc6
commit 11888fcdc3
6 changed files with 24 additions and 24 deletions

View File

@@ -32,7 +32,7 @@ const EnterpriseSSO = (props) => {
<div className="d-flex justify-content-center m-4">
<div className="d-flex flex-column">
<div className="mw-500">
<h3 className="section-title border-gray-200"><span className="text">Sign in</span></h3>
<h3>Sign in</h3>
<Form className="m-0">
<p>{intl.formatMessage(messages['enterprisetpa.title.heading'], { providerName: tpaProvider.name })}</p>
<Button
@@ -60,7 +60,7 @@ const EnterpriseSSO = (props) => {
</>
)}
</Button>
<h3 className="section-title border-gray-200"><span className="text">or</span></h3>
<div className="mb-4" />
<Button
type="submit"
variant="primary"