Hello guys,
In the last two weeks I've been trying to make the domain/county_country path modules with Drupal 8 language core module works. Our goal is to achieve this particular multi country/language domain system:

https://example.com/US/en/some-user-friendly-url -> United States country, English language
https://example.com/US/es/some-user-friendly-url-in-spain -> United States country, Spanish language

https://example.com/DE/de/some-user-friendly-url-in-german -> Germany country, German language
https://example.com/AT/de/some-user-friendly-url-in-german -> Austria country, German language

For now i developed patch in country module that provides Language Negotiation Plugin who allows to the Routing system to get the correct language prefix. (the second one in the example urls). Now the problem is that my patch doesn't work with Node url-alias :). i will add my patch together with the patch from this issue: https://www.drupal.org/node/2876366 (implemented with my code).

I would be very grateful if you would assist me with the development of this functionality.

Greetings,
Atanas Sotirov

Comments

a.sotirov created an issue. See original summary.

a.sotirov’s picture

StatusFileSize
new49.23 KB
itsekhmistro’s picture

Status: Active » Needs work
itsekhmistro’s picture

Hi,

Important, the patch from https://www.drupal.org/node/2876366 is applied.

Could you update the attached patch to match with the latest 8.x-1.x version code?

Thank you in advance.

a.sotirov’s picture

Hi,
I applied my patch onto last version of 8.x-1.x-dev version of module. The result was the same, so I'm uploading the patch here.

Greetings,
Atanas Sotirov

a.sotirov’s picture

Hi again,
After deep debugging on my custom code I finally find where the bug was. So I tested the code deeply and the changes works fine for my purposes. I'm uploading the FINAL patch so you can test it :)

Greetings,
Atanas Sotirov

a.sotirov’s picture

Status: Needs work » Needs review
riv16n824’s picture

StatusFileSize
new4.64 KB

Based on a.sotirov patch, here is an updated version.
country_path_uninstall()moved to country_path.install file.
Fixed php_codesniffer errors.
All thanks to a.sotirov.

  • itsekhmistro committed 9fad8ad on 8.x-1.x authored by rusty_riv
    Issue #2888841 by a.sotirov, rusty_riv: county_country path doesn't work...
itsekhmistro’s picture

Status: Needs review » Fixed

The patch was applied.

Thanks to a.soritov.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.