Navigate to self

2 posts, 0 answers
  1. Gary
    Gary avatar
    62 posts
    Member since:
    Sep 2013

    Posted 10 May 2013 Link to this post

    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
  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 14 May 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top