The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 48dfdb8a authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

ajaxLoadTab domain name bug fix (#808)

- Fix a problem where ajaxLoadTab fails to load a tab when the domain name begins with the VuFind path (e.g. http://vufind2.local/vufind2/Record/something). 
parent d3849f58
No related merge requests found
......@@ -164,7 +164,7 @@ function ajaxLoadTab($newTab, tabid, setHash) {
urlroot = '/' + chunks[3] + '/' + chunks[4];
} else {
// standard case -- VuFind has its own path under site:
var pathInUrl = urlWithoutFragment.indexOf(path);
var pathInUrl = urlWithoutFragment.indexOf(path, urlWithoutFragment.indexOf('//') + 2);
var parts = urlWithoutFragment.substring(pathInUrl + path.length + 1).split('/');
urlroot = '/' + parts[0] + '/' + parts[1];
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment