Skip to content
Snippets Groups Projects
Commit 00c1b7ab authored by Demian Katz's avatar Demian Katz
Browse files

Merge pull request #502 from EreMaijala/ajax-tab-fix

Fix ajaxTabLoad to work when there are query parameters in the URL.
parents ff64852f 217b4647
No related merge requests found
......@@ -154,7 +154,7 @@ function ajaxLoadTab(tabid) {
}
// Parse out the base URL for the current record:
var urlParts = document.URL.split('#');
var urlParts = document.URL.split(/[?#]/);
var urlWithoutFragment = urlParts[0];
var pathInUrl = urlWithoutFragment.indexOf(path);
var chunks = urlWithoutFragment.substring(pathInUrl + path.length + 1).split('/');
......
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