VuFind
  1. VuFind
  2. VUFIND-1039

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

        Activity

        Hide
        Chris Hallberg added a comment - - edited
        This occurs when path is an empty string. Working on a fix now.
        Show
        Chris Hallberg added a comment - - edited This occurs when path is an empty string. Working on a fix now.
        Hide
        Chris Hallberg added a comment -
        Resolved with a regular expression instead of a split.
        Show
        Chris Hallberg added a comment - Resolved with a regular expression instead of a split.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: