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
{{ message }}
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
2.x: Check the target of didNavigate events: Currently if a place instead of a target is used as the value of the target field in navigateRequest events, this is also used as the topic of the didNavigate event. Since this violates the constraints of the topic syntax and is no target at all, we'd rather leave the value for target empty. In case of a direct request (i.e. the URL changes) _self is used, which is also incorrect (flow (v2.x): differentiate target and place in navigation events #381).
2.x: Make target and place explicit in navigateRequest events: Currently only target is supported, which could be a place or a target. This should be more explicit, so that either target or place is allowed, but each is only interpreted as what it name says it is. If both are given, this incident should be logged, but the place should eventually be favored, since its more explicit (flow (v2.x): differentiate target and place in navigation events #381).
For 1.x: after a redirect we should call $location.replace() to replace the entry on the history stack instead of putting it on top. Otherwise redirects create two entries and thus break the back button. For 2.x we should check the according api in page.js (flow: ensure that redirects don't mess with browser history #382) (edit: the issue does not exist in page.js, so nothing to do for 2.x).
1.x: If the application uses a non empty base for routing in html5 mode, that base is added as prefix to the routes but also to the place name within the didNavigate event. This leads to inconsistency between configured places and places within the event. The context (i.e. the base) should never be part of the places. Have a look at flow.spec.js for an example (remove HTML5 router base from navigation events #383).
The text was updated successfully, but these errors were encountered:
2.x: when a flow definition contains an invalid empty place, an error is logged (good). Afterwards however, a route is set up and the log message for the route does not seem to match the actual place that is used (if there is no global error redirect, the log message also seems wrong). IMO, we should simply return after logging the error and not try to do anything "useful" afterwards. Then we should consider when/if it makes sense to use the error redirect (flow (v2.x): simplify handling empty places #384).
target
ofdidNavigate
events: Currently if a place instead of a target is used as the value of thetarget
field innavigateRequest
events, this is also used as the topic of thedidNavigate
event. Since this violates the constraints of the topic syntax and is no target at all, we'd rather leave the value fortarget
empty. In case of a direct request (i.e. the URL changes)_self
is used, which is also incorrect (flow (v2.x): differentiatetarget
andplace
in navigation events #381).target
andplace
explicit innavigateRequest
events: Currently onlytarget
is supported, which could be a place or a target. This should be more explicit, so that eithertarget
orplace
is allowed, but each is only interpreted as what it name says it is. If both are given, this incident should be logged, but theplace
should eventually be favored, since its more explicit (flow (v2.x): differentiatetarget
andplace
in navigation events #381).flow.json
against the flow JSON schema, defaults should directly be applied. Currently defaults are set manually (2.x: move from jjv to ajv for JSON schema validation #380).$location.replace()
to replace the entry on the history stack instead of putting it on top. Otherwise redirects create two entries and thus break the back button. For 2.x we should check the according api inpage.js
(flow: ensure that redirects don't mess with browser history #382) (edit: the issue does not exist in page.js, so nothing to do for 2.x).didNavigate
event. This leads to inconsistency between configured places and places within the event. The context (i.e. the base) should never be part of the places. Have a look atflow.spec.js
for an example (remove HTML5 router base from navigation events #383).The text was updated successfully, but these errors were encountered: