Adjustments for subdirectory serving
diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep
index cb72f8a..6280855 100644
--- a/templates/layouts/main.html.ep
+++ b/templates/layouts/main.html.ep
@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=false, user-scalable=no" />
<link href="/img/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="/css/kalamar-<%= $Kalamar::VERSION %>.css" type="text/css" rel="stylesheet" />
- <script src="/js/<%== loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js') %>" type="text/javascript" async="async"></script>
</head>
% my $embedded = 0;
% $embedded = 1 if stash('embedded');
@@ -33,13 +32,15 @@
<a href="http://korap.ids-mannheim.de/"><%= loc 'about' %></a>
<%= doc_link_to 'V '. $Kalamar::VERSION, 'korap', 'kalamar' %>
</footer>
- %= notifications 'Alertify', -no_include
% };
+
+%= javascript '/js/' . loc('jsFile', 'kalamar-' . $Kalamar::VERSION . '-en.js')
%= javascript begin
window.KorAP = window.KorAP || {};
% my $api = url_for('index')->to_abs;
% $api =~ s!/$!!;
KorAP.URL = '<%== $api %>';
% end
+%= notifications 'Alertify', -no_include
</body>
</html>