-
Notifications
You must be signed in to change notification settings - Fork 52
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
24423 Only redirect when route is Dashboard #705
Conversation
- don't redirect to new dashboard for local filings
Quality Gate passedIssues Measures |
@@ -450,9 +450,9 @@ export default class App extends Mixins( | |||
// now that LaunchDarkly has been updated (ie, in case of user targeting), | |||
// check whether to use this Entity Dashboard or the new Business Dashboard | |||
if (GetFeatureFlag('use-business-dashboard')) { | |||
if (GetFeatureFlag('use-business-dashboard') && (this.$route.name === Routes.DASHBOARD)) { |
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.
This was behaving incorrectly when the (new) Business Dashboard UI redirected to this (old) Entity Dashboard to perform a local filing (eg, COD).
const identifier = (this.businessId || this.tempRegNumber) | ||
const dashboardUrl = `${this.getBusinessDashUrl}/${identifier}${this.$route.fullPath}` | ||
const dashboardUrl = `${this.getBusinessDashUrl}${identifier}${this.$route.fullPath}` |
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 old code caused a double slash between the URL and id.
/gcbrun |
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.
LGTM
Temporary Url for review: https://business-filings-dev--pr-705-qcyo3ob5.web.app SB says, try the following examples:
|
Issue #: bcgov/entity#24423
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the business-filings-ui license (Apache 2.0).