mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
e302be2749
commit
45b8e6b66a
1 changed files with 3 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue