Fix links in error screen

pull/1/head
yflory 2021-01-12 15:55:30 +01:00
parent 87a7669f29
commit d2fb68642d
1 changed files with 10 additions and 0 deletions

View File

@ -1005,6 +1005,16 @@ define([
} else {
$error.html(error || Messages.error);
}
$error.find('a[href]').click(function (e) {
e.preventDefault();
var href = $(this).prop('href');
if (!href) { return; }
if (e && e.ctrlKey) {
window.open('/bounce/#'+encodeURIComponent(href));
return;
}
window.parent.location = href;
});
if (exitable) {
$(window).focus();
$(window).keydown(function (e) {