Ghost/core/server
Hannah Wolfe af6137248d New URL helper - URL consistency fixes
fixes #1765
fixes #1811
issue #1833

New UrlFor functions

- moved body of url helper to config.path.urlFor, which can generate a URL for various scenarios
- urlFor can take a string (name) or object (relativeUrl: '/') as the first
  argument - this is the first step towards issue #1833
- also added config.path.urlForPost which is async and handles getting
  permalink setting
- frontend controller, ghost_head helper, cache invalidation all now use
  urlFor or urlForPost all urls should be correct and consistent

URL Consistency Improvements

- refactored invalidateCache into cacheInvalidationHeader which returns a
  promise so that url can be generated properly by urlForPost
- moved isPost from models to schema, and refactored schema to have a tables object
- deleted posts now return the whole object, not just id and slug,
  ensuring cache invalidation header can be set on delete
- frontend controller rss and archive page redirects work properly with subdirectory
- removes {{url}} helper from admin and client, and replaced with adminUrl
  helper which also uses urlFor
- in res.locals ghostRoot becomes relativeUrl, and path is removed
2014-01-06 15:15:48 +00:00
..
api New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
config New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
controllers New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
data New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
helpers New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
middleware New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
models New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00: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 Adds ability to quickly get to post’s edit page 2014-01-03 18:16:00 -05:00
storage Cache control headers & query string asset management 2014-01-02 12:14:33 +00:00
views New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00: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 Added handling for undefined errors and test coverage 2014-01-03 15:07:08 -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 Move config path.update to config.load 2014-01-02 20:29:49 +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