New: Health Check errors now have links to the wiki pages.

This commit is contained in:
Taloth Saldono 2014-06-03 23:04:28 +02:00
commit 0e7fc2e697
7 changed files with 68 additions and 10 deletions

View file

@ -48,13 +48,15 @@ define(
throw 'couldn\'t find route target';
}
if (!href.startsWith('http')) {
var relativeHref = href.replace(StatusModel.get('urlBase'), '');
Backbone.history.navigate(relativeHref, { trigger: true });
}
else if (href.contains('#')) {
//Open in new tab without dereferer (since it doesn't support fragments)
window.open(href, '_blank');
}
else {
//Open in new tab
window.open('http://www.dereferer.org/?' + encodeURI(href), '_blank');