You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
The canDeactivate() hook is called twice whenever the destination route's fragment contains an unescaped character such as s space or letters like 'ä'.
If the hook is called the first time, the fragment of the passed NavigationInstruction is the unescaped string, which contains the raw special characters mentioned above.
After returning from canDeactivate(), the hook is called again.
This time, the fragment contains the encoded route.
Note: This basically always happens when using a space character in the destination url but only happens sometimes, when the unencoded character is another one, such as 'ä'. This makes the behavior of the canDeactivate() hook kinda random.
I know that there was already a fix for this in #616 ,but it seems that there are still problems when using unencoded special characters in the destination uri.
Expected/desired behavior:
Only call the canDeactivate() hook once, regardless of the route's fragment.
The text was updated successfully, but these errors were encountered:
I'm submitting a bug report
1.6.3
Please tell us about your environment:
Operating System:
macOS 10.14.2
Node Version:
8.11.1
NPM Version:
6.4.1
Browser:
Electron/Chromium
Language:
TypeScript 2.9.2
Current behavior:
The
canDeactivate()
hook is called twice whenever the destination route's fragment contains an unescaped character such as s space or letters like 'ä'.If the hook is called the first time, the fragment of the passed
NavigationInstruction
is the unescaped string, which contains the raw special characters mentioned above.After returning from
canDeactivate()
, the hook is called again.This time, the fragment contains the encoded route.
Note: This basically always happens when using a space character in the destination url but only happens sometimes, when the unencoded character is another one, such as 'ä'. This makes the behavior of the
canDeactivate()
hook kinda random.I know that there was already a fix for this in #616 ,but it seems that there are still problems when using unencoded special characters in the destination uri.
Expected/desired behavior:
canDeactivate()
hook once, regardless of the route's fragment.The text was updated successfully, but these errors were encountered: