-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name Examination UI to reflect NR number in the URL #18137
Comments
@seeker25 Could you provide a little more insight |
EG. https://namex-test.apps.silver.devops.gov.bc.ca/names/NR3927826 Should take you directly to that name request, without needing to enter into the search, then press ok etc. This also makes it easier for sharing Name requests via URL and makes it possible for other apps to build in links that can be navigated to easily |
I love this idea. @eve-git , here is how Filings UI does it.
|
@severinbeauvais I added a param in the nameexamination router definition:
The NR number is successful put in the URL, like http://localhost:8081/nameExamination/NR3361106. I updated code in routers.beforeResolve and redirected to newNrNumber in the case, just like a normal search. However, I always have 404 error after clicking the URL having an NR number. I understand that the action is like reload a page, all the sessionStorage and state values were cleared. I wonder how business-filings pass security when reloading a new page? |
There are different ways to do this.
|
As discussed with Eve: Already logged into KC
Not logged in flow:
Some small changes are required to add in a redirect url (careful with this, potential bad actors), or store the original URL before redirecting to /home and having the user click the signin button This can be passed up to the keycloak login (optionally): keycloak.init({token: token, onLoad: 'login-required', redirectUri: 'http://localhost:8081/signin?redirectUrl=http://localhost:8081/NR594594'}). could even be saved in the session state and redirected using that after logging in (reading session storage perhaps) [if it doesn't exist, just redirect to /home like it's doing now] Currently in App.vue, created loadSetUp is called which wipes out most of the session state variables - so some tweaks and considerations are required |
ready for test in DEV and TEST environment. To test:
|
@eve-git , I tested, and the NR is imbedded in the URL as you described above I also could access the NR directly with the URL |
This will be super handy, pretty excited |
Deployed the new code change to DEV and TEST environment. Ready to test |
Tested, it looks ok, the "Go Next" button causes the NR number in the URL to change to the new NR |
Travis asked if it is possible to make name examination UI reflect NR number in URL based.
The text was updated successfully, but these errors were encountered: