This is a migrated thread and some comments may be shown as answers.

Navigate to self

1 Answer 73 Views
SPA
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 10 May 2013, 03:31 PM
I'm adding some routes on demand, and have a need to issue a navigate to the current url fragment so that my new route can be processed. I noticed that calling router.navigate(location.hash) does not work because you have smarts to shortcut the action if the route has not changed.

I implemented the following fix, but wanted to share so you can consider adding support for this in the future:
window.kendo.history.current = "/";
router.navigate(location.hash);
Thanks,
Gary

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 14 May 2013, 01:27 PM
Hello Gary,

I am not sure that I understand your case completely. Can you please explain it further? Why would you need navigating to the current url for processing the new routes? 

Regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
SPA
Asked by
Gary
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or