wazum / sluggi

The TYPO3 CMS slug helper
GNU General Public License v3.0
39 stars 22 forks source link

Add Mount Point to getVariant() URI generation. #50

Closed Andreas-Sommer-TUM closed 3 years ago

Andreas-Sommer-TUM commented 3 years ago

At TUM, we encountered an issue having a mount point differing to the domain like "https://www.my-domain.tld/subpath-as-mount-point" will cause a faulty redirect.

Example MP: https://www.my-domain.tld/subpath-as-mount-point Slug: /bob New Slug: /alice Source Path: /subpath-as-mount-point/bob/subpath-as-mount-point/ Destination: /subpath-as-mount-point/alice/subpath-as-mount-point/

I added a simple fix by providing $basePath as MP.

wazum commented 3 years ago

@Andreas-Sommer-TUM thanks, I'll take a look at it and merge asap

wazum commented 3 years ago

@Andreas-Sommer-TUM should be fixed with the latest commit https://github.com/wazum/sluggi/commit/e17453351c850261f94a2a6379cdff6b7f75bc12