Home › Forums › Other › Ajax theme › Re: Ajax theme
I just found the solution myself, can’t believe it…..
in allajax.js
change this:
function hashizeLinks() {
$(“a[href^='”+siteURL+”‘]”).each(function() {
$el = $(this);
// Hack for IE, which seemed to apply the hash tag to the link weird
if ($.browser.msie) {
$el.attr(“href”, “#/” + this.pathname)
.attr(“rel”, “internal”);
} else {
$el.attr(“href”, “#” + this.pathname)
.attr(“rel”, “internal”);
}
});
};
to:
function hashizeLinks() {
$(“a[href^='”+siteURL+”‘]”).each(function() {
$el = $(this);
if($el).attr(“target”) != “_blank” {
// Hack for IE, which seemed to apply the hash tag to the link weird
if ($.browser.msie) {
$el.attr(“href”, “#/” + this.pathname)
.attr(“rel”, “internal”);
} else {
$el.attr(“href”, “#” + this.pathname)
.attr(“rel”, “internal”);
}
}else {
.attr(“rel”,””);
}
});
};
=> if the link has target=”_blank” the rel=”” and this escapes the internal loading.
Greetings, Ethel