Skip to content

Invalid url with shortcut in subdirectory #604

@Smove

Description

@Smove

When using realurl in a TYPO3 instance inside of a subdirectory of the document root, the rendered link of a page with doktype shortcut(=4) to the page root gets the following:

<absRefPrefix><directory Structure to TYPO3 instance relative to document root>

Every other page is rendered correctly.

Example setup:

  • TYPO3 8.7.10
  • realurl @ current development branch on github
  • TYPO3 installed into /pfdl/cms/ inside the document root
  • config.absRefPrefix set to "auto" (gets /pfdl/cms/ in current example)
  • pagetree:
    grafik
    Page with uid 3 is of type shortcut with target page 1.

Rendering the menu as cObject FLUIDTEMPLATE and TYPO3\CMS\Frontend\DataProcessing\MenuProcessor with following settings:

dataProcessing {
            10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
            10 {
                special = directory
                special.value = 1
                levels = 2
                as = menuEntries
            }
        }

In the fluidtemplate, fluid variable menuEntries.[n].link got /pfdl/cms/pfdl/cms/ as value. Should be /pfdl/cms/.

If is set a static absRefPrefix to /abc/, the link is /abc/pfdl/cms/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions