Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Ajax theme Re: Ajax theme

#89250
ethel
Member

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