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
-
routeTologic needs to be common and so extracted tosrc/components/navigation/navigation.js -
getRouteToinnavigation_pins.jsandrouteToinnavigation_entry.jsimplementations are replaced with calls to the extracted function.
Edited by iamtakingiteasy