|
|
@ -49,10 +49,16 @@ define(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!href.startsWith('http')) {
|
|
|
|
if (!href.startsWith('http')) {
|
|
|
|
|
|
|
|
if (event.ctrlKey) {
|
|
|
|
|
|
|
|
window.open(href, '_blank');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else {
|
|
|
|
var relativeHref = href.replace(StatusModel.get('urlBase'), '');
|
|
|
|
var relativeHref = href.replace(StatusModel.get('urlBase'), '');
|
|
|
|
|
|
|
|
|
|
|
|
Backbone.history.navigate(relativeHref, { trigger: true });
|
|
|
|
Backbone.history.navigate(relativeHref, { trigger: true });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (href.contains('#')) {
|
|
|
|
else if (href.contains('#')) {
|
|
|
|
//Open in new tab without dereferer (since it doesn't support fragments)
|
|
|
|
//Open in new tab without dereferer (since it doesn't support fragments)
|
|
|
|
window.open(href, '_blank');
|
|
|
|
window.open(href, '_blank');
|
|
|
|