Describe the bug
I'm using spatie/laravel-translatable to save my models, in my models I have olso the translated slug.
My problem at the moment is how retrive the correct getLocalizedURL with the given locale, cause actually getLocalizedURL return the correct base address but the wring final slug.
Describe the bug I'm using spatie/laravel-translatable to save my models, in my models I have olso the translated slug.
My problem at the moment is how retrive the correct getLocalizedURL with the given locale, cause actually getLocalizedURL return the correct base address but the wring final slug.
Example:
en/route.php
fr/route.php
single-article.blade.php
If the url is:
article/good-company
In the english page I get:
EN: https://mysite.com/articles/good-company FR: https://mysite.com/article/good-company
In the french page I get:EN: https://mysite.com/articles/bonne-compagnie FR: https://mysite.com/article/bonne-compagnie
How can solve this problem?