redirect- url issue

2 posts, 0 answers
  1. Dominic
    Dominic avatar
    4 posts
    Member since:
    Aug 2011

    Posted 20 Sep 2013 Link to this post

    hello
    in my complete mobile web app i got the same problem wenn redirecting to a new site with click on a button

    example:
    iam on site: www.host.org/home/index
    and i want to: www.host.org/mail/inbox

    on click the button redirects to correct site but the url is now www.host.org/home/index#/mail/inbox

    its no big thing, main features are still working, but i ran into some update and refresh issues. for example: after a redirect and creating of a this kind of a monster url badges on buttons are no longer displayed. even refresh don let them appear. only tiping the correct url fixes it.
    i also have problems with login and out becouse of this kind of url


    example for a button :
    <a data-role="button" href="/projekte/index"> <img src="~/Content/images/icons/48x48/projekte48.png" /> Projekte </a>

    or my "login button"
    <a data-click="login" id="modalview-login-button" type="button" data-role="button">Login</a>
    <script>
    //...

    $.ajax({
            type: "POST",
            url: webMethod,
            data: parameters,
            contentType: "application/json; chaset=utf-8",
            dataType: "json",
            success: function (data) { if (data.Success) { app.navigate("/home/index"); closeModalView(); } }
        });

    //...
    </script>
  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 24 Sep 2013 Link to this post

    Hello Dominic,

    The behavior you describe is by design. This is how the non-push state URLs look like, as they rely on the hash-fragment changes. 

    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
Back to Top