Ghost/core/server
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
..
api Path, url and subdir cleanup & test 2013-12-28 16:09:56 +00:00
config Path, url and subdir cleanup & test 2013-12-28 16:09:56 +00:00
controllers Merge pull request #1772 from markberger/1753-static-page-url 2013-12-28 10:40:07 -08:00
data Allows disabling of timestamps when importing posts 2013-12-26 15:29:16 -05:00
helpers Merge pull request #1769 from ErisDS/shared-assets 2013-12-28 10:52:24 -08:00
middleware Fix live theme switching not working on subdirectories 2013-12-28 15:08:57 -08:00
models Merge pull request #1759 from hswolff/fix-import-updated-at 2013-12-28 11:41:05 -08:00
permissions Remove unparam:true from jslint config in Gruntfile.js 2013-10-31 14:02:34 -04:00
plugins Remove ghost.js 2013-12-07 10:10:02 -05:00
routes Merge pull request #1772 from markberger/1753-static-page-url 2013-12-28 10:40:07 -08:00
storage Path, url and subdir cleanup & test 2013-12-28 16:09:56 +00:00
views Delete all content (posts and tags) 2013-12-25 01:05:20 +01:00
bookshelf-session.js Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00
errorHandling.js Standardize file path access throughout ghost 2013-12-12 21:27:07 -05:00
filters.js This commit removes a lot of code from ghost.js, including: 2013-11-28 09:21:53 -05:00
index.js Adds URL back into theme config 2013-12-26 12:15:10 +00:00
mail.js Fix unhandled errors in mail.js 2013-12-20 12:57:21 +00:00
require-tree.js Remove unparam:true from jslint config in Gruntfile.js 2013-10-31 14:02:34 -04:00