Fix user-profile route crash on pinned favorites timeline
Currently getRouteTo
in src/components/navigation/navigation_pins.js
does not set name
route parameter, which is required by user-profile
route, leading to FE crashing early when favorites timeline is pinned. Reproduces in dev mode if after logging in as a user that has favorites timeline pinned page is refreshed.
Changes
-
routeTo
logic needs to be common and so extracted tosrc/components/navigation/navigation.js
-
getRouteTo
innavigation_pins.js
androuteTo
innavigation_entry.js
implementations are replaced with calls to the extracted function.
Edited by iamtakingiteasy