Change URL without routing

5 posts, 0 answers
  1. Michael
    Michael avatar
    5 posts
    Member since:
    Aug 2013

    Posted 13 Mar 2014 Link to this post

    I have a need to change the URL without routing/changing the existing view.

    Here is the use case:
    User navigates to mysite.com/app#/items/add  to add a new item. User then hits save. I would like for the page to stay on that view in case the user wishes to make more edits but I want the URL and history to change to mysite.com/app#/items/<new-id>.

    Right now when it changes the hash fragment, it swaps the view with the same view and there is a "add" in the history, neither of which is desirable. 

    Is there any way to achieve my goal?

    Thanks in advance for any help you may give me.
  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 14 Mar 2014 Link to this post

    Hello Michael,

    This is somewhat hard to achieve, currently. The good news is that in our upcoming Q1 release, due end of this month, we are going to expose another navigational method, replace, which is going to replace the current URL state with the next one, not keeping the previous entry in the history.

    If I understand your case correctly, you will still have to do some custom coding to ensure that the view is not swapped with itself, though.

    Regards,
    Petyo
    Telerik
     
    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
  4. Michael
    Michael avatar
    5 posts
    Member since:
    Aug 2013

    Posted 14 Mar 2014 Link to this post

    This is good news as I already have code in place to not swap the view so this looks like exactly what I am looking for. Do you have an ETA on the release? Is it already in a nightly build that I might try?

    Thanks!
  5. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 14 Mar 2014 Link to this post

    Hi Michael,

    Thank you for your interest. We don't have this in any public release available - I literally implemented it today and it has not passed any QA yet. Our Q1 release is usually happens March 22-24, so it's not too far away, though. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Michael
    Michael avatar
    5 posts
    Member since:
    Aug 2013

    Posted 14 Mar 2014 in reply to Michael Link to this post

    Awesome! Thanks so much for the info.
Back to Top
Kendo UI is VS 2017 Ready