Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid url with shortcut in subdirectory #604

Open
Smove opened this issue Mar 4, 2018 · 1 comment
Open

Invalid url with shortcut in subdirectory #604

Smove opened this issue Mar 4, 2018 · 1 comment

Comments

@Smove
Copy link

Smove commented Mar 4, 2018

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/.

@dmitryd
Copy link
Owner

dmitryd commented Mar 7, 2018

RealURL does not work well when you install TYPO3 in a subdirectory. Currently there are no plans to fix that because this is a rare case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants