Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15377

INCLUDECSS and INCLUDEJS broken on all front controllers (app.php)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.3.0-b1
    • 4.0.0-a1, 3.3
    • Template Engine
    • None

      I just noticed on the current master branch, all uses of INCLUDECSS and INCLUDEJS are broken on any controller served via app.php.

       

      They are broken because the path to the controller (i.e.: app.php/help) is being inserted into the path to the linked CSS and JS files, for example:

      [Error] Failed to load resource: the server responded with a status of 404 (Not Found)
       
      http://localhost/phpbb/app.php/help/styles/prosilver/template/forum_fn.js?assets_version=1660
       
      [Error] Failed to load resource: the server responded with a status of 404 (Not Found)
       
      http://localhost/phpbb/app.php/help/styles/prosilver/template/ajax.js?assets_version=1660

       

      To reproduce, just go to the FAQ page @ Area51 (same goes for any extension with a controller) and look at your browser console error log.

            CHItA CHItA
            VSE Matt Friedman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: