Skip to content

Loading…

IE7 returns host in hash fragment #1319

Closed
Akaryatrh opened this Issue · 0 comments

1 participant

@Akaryatrh

Hey all,

With backbone.history settled as follow (using latest BB 0.9.2) :

Backbone.history.start({pushState: true, silent: true, root : "/app/"});

A simple link like this one :

<a href="path">link</a>

Links actions are binded as :

$('body').on('click', 'a', function(e) {

    var link = $(this).attr("href");
    router.navigate(link, true);
    e.preventDefault();

});

IE7 returns hash fragment this way : http://host/app/#http://host/path
(while it should be http://host/app/#path)
Everything works as expected in : IE8 + IE9 + Firefox + Safari + Chrome + Opera


EDIT :
OK, this bug is not affiliated with BB after all, but to IE7 directly. When using a relative path in href, IE7 instantiates it as http://host/path
Some affiliated posts here : http://stackoverflow.com/questions/1593174/wrong-extraction-of-attrhref-in-ie7-vs-all-other-browsers or here : http://bugs.jquery.com/ticket/11129

@Akaryatrh Akaryatrh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.