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

fix: adapt 'addGlobalGuard' function to work with functional guards #1425

Merged
merged 2 commits into from May 3, 2023

Conversation

shauke
Copy link
Member

@shauke shauke commented Apr 28, 2023

PR Type

[x] Bugfix

What Is the Current Behavior?

The changes for "refactor(Angular 15): replace class-based route guards by functional guards" (289e161) broke the registration of the global hybridRedirectGuard needed for the Hybrid Approach. So the Hybrid Approach is not working with PWA 4.0.0.

What Is the New Behavior?

The global guard registration works again and the Hybrid Approach can be used with current PWA versions again.

Does this PR Introduce a Breaking Change?

[x] No

Other Information

AB#85701

* needed to fix Hybrid Approach to successfully register 'hybridRedirectGuard'
@shauke shauke added this to the 4.1 milestone Apr 28, 2023
@shauke shauke self-assigned this Apr 28, 2023
@shauke shauke requested a review from SGrueber April 28, 2023 08:01
@shauke shauke added the bug Something isn't working label Apr 28, 2023
SGrueber
SGrueber previously approved these changes Apr 28, 2023
@SGrueber
Copy link
Collaborator

Are you sure the check for 'guard.prototype.canActivate' is not needed any more?

@shauke shauke merged commit 2bf9828 into develop May 3, 2023
21 checks passed
@shauke shauke deleted the bugfix/hybrid-redirect-guard_registration branch May 3, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants