0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
Hannah Wolfe a9759736d6
🐛 Fixed private blogging exposing 404 and robots (#11922)
- There were various cases where it was possible to trigger a private site to display a 404 instead of redirecting to /private/
- Private mode was also not always displaying the correct robots.txt
- This PR includes tests for all cases in test/frontend-acceptance/default_routes_spec.js & where possible the unit tests have also been updated for completeness
- Fixing the 404 issues required
    - Better handling of paths using req.path instead of req.url in filterPrivateRoutes
    - Additional error handling, to cover the case that a tag/author RSS feed does not exist
 - Fixing the robots.txt required the order of middleware to be changed, so that private blogging gets a chance to render first
    - NOTE private blogging is the only app with a setupMiddleware function so nothing else is affected
2020-06-16 11:42:32 +01:00
..
adapters Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
api 🐛 Fixed fallback to bookmark card when pasting localhost Ghost url 2020-06-15 18:38:43 +01:00
data Removed "from address" overwrite in importer (#11914) 2020-06-15 12:22:55 +05:30
lib Added imageOptimization:srcsets config to allow disabling of srcset attrs in content 2020-06-15 16:45:36 +01:00
models Added ?force_rerender=true param to posts edit endpoint 2020-06-12 18:05:57 +01:00
public Renamed members ssr + api endpoints 2020-04-30 19:00:37 +01:00
services 🐛 Fixed missing text version in bulk email (#11919) 2020-06-15 15:31:09 +01:00
translations Added invalid import record errors and counts 2020-06-12 19:59:36 +12:00
views Update default 404 page 2019-07-15 14:47:01 +02:00
web 🐛 Fixed private blogging exposing 404 and robots (#11922) 2020-06-16 11:42:32 +01:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
index.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
overrides.js
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00