mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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:
|
* @NOTE:
|
||||||
* This file is used for v0.1 and v2. v0.1 returns relative urls, v2 returns absolute urls.
|
* 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) {
|
if (urlService.utils.absoluteToRelative(entry.url, {withoutSubdirectory: true}) !== req.path) {
|
||||||
debug('redirect');
|
debug('redirect');
|
||||||
|
|
Loading…
Add table
Reference in a new issue