0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added TODO to controllers/entry.js

refs #9866
This commit is contained in:
kirrg001 2018-10-17 18:31:35 +02:00 committed by Katharina Irrgang
parent e302be2749
commit 45b8e6b66a

View file

@ -66,6 +66,9 @@ module.exports = function entryController(req, res, next) {
*
* @NOTE:
* This file is used for v0.1 and v2. v0.1 returns relative urls, v2 returns absolute urls.
*
* @TODO:
* Simplify if we drop v0.1.
*/
if (urlService.utils.absoluteToRelative(entry.url, {withoutSubdirectory: true}) !== req.path) {
debug('redirect');