[wp-trac] [WordPress Trac] #53506: When using the WordPress Development Environment (wpenv) links to missing asset files do not return 404 and are redirected

WordPress Trac noreply at wordpress.org
Thu Jun 24 19:30:33 UTC 2021


#53506: When using the WordPress Development Environment (wpenv) links to missing
asset files do not return 404 and are redirected
------------------------------+----------------------------
 Reporter:  azaozz            |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Future Release
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+----------------------------
 The redirect is with 301 to the same location as the missing file but with
 backslash added at the end. Then the front-end is loaded. This results in
 errors when the missing file is js or css:

  The stylesheet http://localhost:8889/wp-
 includes/css/buttons.css/?ver=5.8-beta3-51218-src was not loaded because
 its MIME type, “text/html”, is not “text/css”.

 Happens only when the "Plain" permalinks (`?p=123`) are used. Changing to
 any other type of permalinks fixes this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53506>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list