Skip to content
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

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

severinbeauvais
Copy link
Collaborator

Issue #: bcgov/entity#24423

Description of changes:

  • app version = 7.4.7
  • don't redirect to new dashboard for local filings

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).

- don't redirect to new dashboard for local filings
@severinbeauvais severinbeauvais self-assigned this Nov 18, 2024
@severinbeauvais severinbeauvais changed the title 24423 Added a redirect condition 24423 Only redirect when route is Dashboard Nov 18, 2024
@@ -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)) {
Copy link
Collaborator Author

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}`
Copy link
Collaborator Author

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.

@severinbeauvais
Copy link
Collaborator Author

/gcbrun

Copy link
Collaborator

@JazzarKarim JazzarKarim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bcregistry-sre
Copy link
Collaborator

bcregistry-sre commented Nov 18, 2024

@severinbeauvais severinbeauvais merged commit 3a907d9 into bcgov:main Nov 18, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants