Closed robbykrlos closed 3 years ago
@robbykrlos I look at this and somehow I feel that it would be better to have this check here
what do you think?
@robbykrlos I look at this and somehow I feel that it would be better to have this check here
what do you think?
@aocneanu it felt a bit wrong since intendedPath
did not have any issues, so it was something more specific to intendedRoute
whet it was set as login route specifically.
So yes, seems better this way, and we'll keep the setter nice and simple.
Let me give it some tests and will PR this new change
intendedRoute
to 'login'. @aconeanu mentioned :"We never want the intended route to be login.". Issue occurred when a link was clicked while the app session was expired, and intendedRoute was overwriting initial intended route with additional API calls (like loading some filter options) which were redirected to login. This made the next page after login load a login form as homepage.@Reviewer :
intendedPath
and did not find the same issue. If after session is expired the URL is force to a page where filters were loaded incorrectly before table, the intendedPath is not set to"/login"
. Therefore, I did not felt thatsetIntendedPath
needs changes.neither one-line-ifs, so I keep the code plain and simple, similar to other enso-ui implementations.
Feel free to choose whatever form you like 👍🏼