mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
14750e0d2a
Closes #1770 - Previously, the middleware would check that the route on the stack was an empty string, which worked when there was no subdirectories - When subdirectories were added, the proper route was only set when updating the theme - Because it was only set when updating, this explains themes working on initial load, since the stack location was looking for an empty string, which is what the middleware was initialized with - However, once a new theme was set, it was still look for an empty string, which would never exist, which caused the issue - Now, the route is properly set on initialization of the middleware, and then the `config.paths().subdir` property is used for the check |
||
---|---|---|
.. | ||
ghost-busboy.js | ||
index.js | ||
middleware.js |