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

Mountpoints across domains are not localized #495

Open
jpeters78 opened this issue Jun 27, 2017 · 3 comments
Open

Mountpoints across domains are not localized #495

jpeters78 opened this issue Jun 27, 2017 · 3 comments

Comments

@jpeters78
Copy link

Environment:
TYPO3 7.6.19
RealUrl 2.2.1

domaina.de (sys_language_uid 0 = de, sys_language_uid 1 = en)

  • Seite 4719 (en: Page)
    -- Unterseite 4725 (en: Subpage)

domainb.de (sys_language_uid 1 = en, defaultGetVars.L = 1)

  • Page 5072 (Mount Point: 4719)
    -- Subpage 5096 (Mount Point: 4725)

Without RealUrl the generated links looks like
http://domainb.de/index.php?id=4719&L=1&MP=4719-5072
http://domainb.de/index.php?id=4725&L=1&MP=4725-5096

With RealUrl the generated links look like
http://domainb.de/en/seite.html
http://domainb.de/en/page/unterseite.html

I have already tested under the autoconfiguration but with the same behavior.
Before the upgrade, under TYPO3 6.2 and RealUrl 1.13.6, the links were built as expected:
http://domainb.de/en/page.html
http://domainb.de/en/page/subpage.html

@dmitryd
Copy link
Owner

dmitryd commented Nov 26, 2017

Question: did you follow exactly language configuration as described in the documentation?

@jpeters78
Copy link
Author

Sorry for the late response, but this issue still exists in RealUrl 2.4.0

Our RealUrl Configuration:

'1' => array (
  'GETvar' => 'L',
  'valueMap' => array (
    'de' => '0',
    'en' => '1',
    'es' => '3',
    'ja' => '5',
  ),
  'noMatch' => 'bypass',
),

TypoScript Configuration domaina.de:

config {
  sys_language_uid = 0
  language = de
  locale_all = de_DE.utf8
  htmlTag_langKey = de
}
[globalVar = GP:L = 0]
config {
  sys_language_uid = 0
  language = de
  locale_all = de_DE.utf8
  htmlTag_langKey = de
}
[global]
[globalVar = GP:L = 1]
config {
  language = en
  locale_all = en_GB.utf-8
  htmlTag_langKey = en_DE
  sys_language_uid = 1
}
[global]

TypoScript Configuration domainb.de

config {
  language = en
  locale_all = en_US.utf-8
  htmlTag_langKey = en-US
  sys_language_uid = 1
}

Page tree domaina.de
Seite 4719 (en title: Page)
Kind Seite 4724 (en title: Child Page)
Enkelkind Seite 5358 (en title: Grandchild Page)

Page tree domainb.de
Page 5072 (MP: Seite 4719)
Child Page (MP: Kind Seite 4724)

Links without RealUrl:
http://domainb.de/index.php?id=4719&L=1&MP=4719-5072
http://domainb.de/index.php?id=4724&L=1&MP=4724-5097
http://domainb.de/index.php?id=5358&L=1&MP=4724-5097

Links with RealUrl:
http://domainb.de/en/page.html
http://domainb.de/en/page/kind-seite.html
http://domainb.de/en/page/kind-seite/enkelkind-seite.html

The pages are called correctly in the english translation. But the speaking urls are mismatched.

@dmitryd
Copy link
Owner

dmitryd commented Oct 3, 2018

I think I tested it after I saw your report.

The problem here is that your domains have different language setup but you are linking across domains. RealURL always creates links in the context of the current domain. So if L=0 in the url means /en/ for the current domain ("domain A"), than in the encoding context it will mean the same for every other domain in your installation. Now if you encode from another domain ("domain B") and L=0 means /de/ there, than RealURL will use /de/ also for L=0 if you create links for domain A.

I see from your TS that this is exactly the case.

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

No branches or pull requests

2 participants