Wrong routes for nested pages

ljanecek
0
ljanecek
commented 3 months ago

Version

v5.3.0

Reproduction link

https://www.vysokyujezduprahy.cz/en

Steps to reproduce

All non-nested pages have their routes generated correctly - try visiting all pages except Pricemap.
Pricemap is a nested page and its routes do not include /en as they should.

What is expected ?

URL: /en/pricemap

What is actually happening?

URL: /pricemap

Additional comments?

module.exports = {
    seo: false,
    locales: [
        {
          code: 'en',
          iso: 'en-US',
          name: 'English',
          file: 'en.json'
        },
        {
          code: 'cs',
          iso: 'cs-CZ',
          name: 'Čeština',
          file: 'cs.json'
        },
        {
          code: 'ru',
          iso: 'ru-RU',
          name: 'Russian',
          file: 'ru.json'
        }
    ],
    lazy: true,
    langDir: 'locales/',
    defaultLocale: 'cs',
    parsePages: false,
    detectBrowserLanguage: false,
    pages: {
        index: {
            cs: '/',
            en: '/',
            ru: ''
        },
        'about': {
            cs: '/o-projektu',
            en: '/about-project',
            ru: ''
        },
        'properties': {
            cs: '/nemovitosti',
            en: '/properties',
            ru: ''
        },
        'location': {
            cs: '/lokalita',
            en: '/location',
            ru: ''
        },
        'pricemap/map': {
            cs: '/mapovy-cenik',
            en: '/pricemap',
            ru: ''
        },
        'pricemap/starred': {
            cs: '/mapovy-cenik/vybrane',
            en: '/pricemap/starred',
            ru: ''
        },
        'pricemap/starred-ids': {
            cs: '/mapovy-cenik/vybrane/:ids',
            en: '/pricemap/starred/:ids',
            ru: ''
        },
        'pricemap/detail': {
            cs: '/mapovy-cenik/detail/:id',
            en: '/pricemap/detail/:id',
            ru: ''
        },
        'pricemap/area': {
          cs: '/mapovy-cenik/lokalita/:id',
          en: '/pricemap/area/',
          ru: ''
        },
        'financing': {
            cs: '/koupe-financovani',
            en: '/financing',
            ru: ''
        },
        'contact': {
            cs: '/kontakt',
            en: '/contact',
            ru: ''
        },
        'u-kulen': {
            cs: '/u-kulen',
            en: '/u-kulen',
            ru: '/u-kulen'
        },
        'zamecke-zahrady': {
            cs: '/zamecke-zahrady',
            en: '/zamecke-zahrady',
            ru: '/zamecke-zahrady'
        },

    }
}
bug
0
Informations
Bug ReportOpen
#c186 - Created 3 months ago