Uploaded image for project: 'VuFind'
  1. VuFind
  2. VUFIND-1039

AjaxTab link incorrectly assembled when path variable is empty in Bootstrap 3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3.1
    • Component/s: None
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            Assignee:
            crhallberg Chris Hallberg
            Reporter:
            l_os_cymru Luke O'Sullivan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: