Ghost/ghost/admin
Hannah Wolfe ee6c22b6e1 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
..
assets Disabled styles for disabled buttons 2014-01-03 22:13:02 +01:00
helpers New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
models Fix error when uploading logo/cover image 2013-12-06 16:43:53 +01:00
tpl New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
views Fixes showing tag suggestions and tag container padding 2014-01-03 04:42:59 -05:00
init.js Path, url and subdir cleanup & test 2013-12-28 16:09:56 +00:00
markdown-actions.js Merge pull request #925 from matthojo/New-line 2013-10-09 11:32:43 -07:00
mobile-interactions.js Cleanup indentation and quotes 2013-09-26 15:06:31 +01:00
router.js API refactor / cleanup 2013-12-20 13:07:01 +00:00
toggle.js Cleanup indentation and quotes 2013-09-26 15:06:31 +01:00