[VUFIND-1039] AjaxTab link incorrectly assembled when path variable is empty in Bootstrap 3 Created: 30/Oct/14  Updated: 30/Oct/14  Resolved: 30/Oct/14

Status: Resolved
Project: VuFind®
Components: None
Affects versions: 2.3
Fix versions: 2.3.1

Type: Bug Priority: Minor
Reporter: Luke O'Sullivan Assignee: Chris Hallberg
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified


 Description   
Not sure if this is just an issue with a locally configured url but when the path is root (i.e. empty) the tab url constucted by javascript doesn't appear to be correct.

For the url

http://hobbiton.vufind-su-working/Record/97332

the constructed ajax url in recoord.js (ajaxLoadTab) is http://97332/AjaxTab

document.URL.split(path+"/") is producing

["http:", "", "hobbiton.vufind-su-working", "Record", "97332"]

and the next line urlparts = parts[1].split("/") is grabbing the second empty value.

 Comments   
Comment by Chris Hallberg [ 30/Oct/14 ]
This occurs when path is an empty string. Working on a fix now.
Comment by Chris Hallberg [ 30/Oct/14 ]
Resolved with a regular expression instead of a split.
Generated at Fri Mar 29 13:34:23 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100248-rev:6a03a54452e975225e04dfda06fdac6fd9e95b00.