bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

Registry UI: on login page, add support for redirects #10905

Closed severinbeauvais closed 2 years ago

severinbeauvais commented 2 years ago

(This was previously #10866, but it got hijacked for other work.)

Description

The BC Registries login page should support a URL parameter to redirect to after successful login. If the redirect URL is not specified then just go to the BC Registries dashboard after login. For example:

  1. ensure you are not logged in
  2. go to an entity's dashboard (eg, https://dev.bcregistry.ca/business/https://dev.bcregistry.ca/business/CP1002494)
  3. you are redirected to BC Registries login page
  4. login (BCREG0020)
  5. you are redirected back to the entity's dashboard

** See use cases in Test Notes below. **

severinbeauvais commented 2 years ago

Test Notes

Dashboard:

BCROS marketing page:

PPR marketing page:

Login page:


(*) Appropriate dashboard:

severinbeauvais commented 2 years ago

@forgeuxGH5 @yuisotozaki This ticket is ready for UX Assurance. The code has been deployed to Dev and Test environments.

Note that you may have to refresh once, initially, to get the latest version. The DevTools Console should display bc-registry v1.0.13.

yuisotozaki commented 2 years ago

Verified in dev environment all the behaviours outline in the comment above. Wow that was a lot of permutations!

forgeuxGH5 commented 2 years ago

@jinghualicgi this still show in UXA for me but it looks like @yuisotozaki already checked it...

chdivyareddy commented 2 years ago

Verified as per the testing notes provided above!