Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12342

Javascript Error : require is not defined when XWiki is the root app

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.1-milestone-1
    • Fix Version/s: 7.2-milestone-2, 7.1.2
    • Component/s: URLs
    • Labels:
    • Environment:
      Debian 7 or 8
      Tomcat 7 or 8
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Javascript Error : require is not defined.

      xwiki is configured as an application ROOT on Tomcat.
      and the Context path="/xwiki" have replaced by Context path="/"

      And now, in all pages of wiki, i have
      <script type="text/javascript" src="//webjars/requirejs/2.1.15/require.min.js?r=1"></script>

      And web jars don't work in this case.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                julien Julien Redondo
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: