-
Notifications
You must be signed in to change notification settings - Fork 15
PB-315: Handle legacy embed view #702
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
Conversation
Passing run #1108 ↗︎Details:
Review all test suite changes for PR #702 ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the redirect service has already been updated with this new rule?
@@ -52,12 +47,12 @@ const appLoadingManagementRouterPlugin = (router, store) => { | |||
isLegacyUrl, | |||
...dispatcher, | |||
}) | |||
unRegisterRouterHook() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What made it not working well keeping it under in the store subsribe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing i just thought it would be wise to stop this plug-in sooner rather than later
The legacy embed view was at hostname/embed.html. Unfortunately we cannot reroute here to another path before the #, because the vue router using the createWebHashHistory can only handle route after the hash. Therefore we have an external redirect service that will redirect to /embed.html to ?legacyEmbed. We use this pseudo legacyEmbed to redirect to #/embed once the other legacy parameters have been translated.
d2bdcbd
to
1236707
Compare
@pakb yes the redirect is ready and applied on dev see https://github.com/geoadmin/infra-kubernetes/pull/508 with this pr merge I’ll do some test before closing the ticket. |
The legacy embed view was at hostname/embed.html. Unfortunately we cannot reroute
here to another path before the #, because the vue router using the createWebHashHistory
can only handle route after the hash. Therefore we have an external redirect
service that will redirect to /embed.html to ?legacyEmbed.
We use this pseudo legacyEmbed to redirect to #/embed once the other legacy
parameters have been translated.
NOTE: I first tried to set the redirect service directly to #/embed but then it made the startup procedure difficult as we needed to detect if other legacy parameters had to be translated and wait on them first. So for simplicity we use a legacy parameter as redirect
which simplify a lot the startup procedure which is then identical for other legacy parameters.
Test link