Skip to content


IE7 returns host in hash fragment #1319

Akaryatrh opened this Issue · 0 comments

1 participant


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);


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

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 : or here :

@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.