Ghost/core/server/middleware
remixz 14750e0d2a Fix live theme switching not working on subdirectories
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
2013-12-28 15:08:57 -08:00
..
ghost-busboy.js Delete all content (posts and tags) 2013-12-25 01:05:20 +01:00
index.js Fix live theme switching not working on subdirectories 2013-12-28 15:08:57 -08:00
middleware.js Path, url and subdir cleanup & test 2013-12-28 16:09:56 +00:00