0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core
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
..
client Shared folder asset handling 2013-12-28 18:29:33 +00:00
server Fix live theme switching not working on subdirectories 2013-12-28 15:08:57 -08:00
shared jQuery link and min map 404 fixes 2013-12-23 21:43:13 +00:00
test Merge pull request #1759 from hswolff/fix-import-updated-at 2013-12-28 11:41:05 -08:00
index.js Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00