diff --git a/static/abaev.js b/static/abaev.js
index 405a589..44aa781 100644
--- a/static/abaev.js
+++ b/static/abaev.js
@@ -1,4 +1,9 @@
$( document ).ready(function() {
+ // Link elements that do not have href out of the box
+ $('.link').on("click", function () {
+ window.location=$(this)[0].dataset.href+window.location.search+window.location.hash;
+ });
+
function bindMapOpen() {
// $('#modal_map').data('abv-entry',$(this).data('abv-entry'));
// $('#modal_map')[0].showModal();
diff --git a/xq/restx_dict_cached.xq b/xq/restx_dict_cached.xq
index 25772f4..02445c1 100644
--- a/xq/restx_dict_cached.xq
+++ b/xq/restx_dict_cached.xq
@@ -55,13 +55,15 @@ declare function page:header($lang as xs:string, $href-other as xs:string) {
{
(element {if ($lang = 'ru') then 'mark' else 'a'}{
if ($lang != 'ru') then
- (attribute onclick {`window.location='{$href-other}'+window.location.search;`},
+ (attribute class {'link'},
+ attribute data-href {`{$href-other}`},
attribute href {'#'}) else (),
'ru'
}, ' / ',
element {if ($lang = 'ru') then 'a' else 'mark'}{
if ($lang = 'ru') then
- (attribute onclick {`window.location='{$href-other}'+window.location.search;`},
+ (attribute class {'link'},
+ attribute data-href {`{$href-other}`},
attribute href {'#'}) else (),
'en'
})
@@ -113,7 +115,7 @@ declare function page:header($lang as xs:string, $href-other as xs:string) {
else
(
if (session:get('searchN') > 1) then
-