When the Destination URL is set to the default site path, the redirectDestUrl returned by GraphQL is incorrect.
Describe the bug
When the Destination URL is set to the default site path, the redirectDestUrl returned by GraphQL is incorrect.
Expected behaviour
This result should not include /fr.
Screenshots
The redirect:
The Result:
Versions
- Retour: 4.1.23
- Craft version: Craft Pro 4.14.9
If you change the destination URL to be a full qualified URL, it will not add any prefix:
https://nystudio107.com/docs/retour/configuring.html#sites-redirect-resolution
Let me know if this is sufficient for your use-case.
If you change the destination URL to be a full qualified URL, it will not add any prefix:
https://nystudio107.com/docs/retour/configuring.html#sites-redirect-resolution
Let me know if this is sufficient for your use-case.
Well, could we add a switch to disable automatically taking Craft Sites into account?
That's potentially an option.
That's potentially an option.
Please, I need this option. We have over 1000 redirects, and I cannot modify them one by one. Also, when I set the 'Legacy URL Match Type' to 'Full URL' and then use GraphQL to input the path, it returns the redirect data. Below is a screenshot. Is this correct?
That "full URL" issue with GraphQL should be fixed in 4.1.25: https://github.com/nystudio107/craft-retour/releases
Please, I need this option. We have over 1000 redirects, and I cannot modify them one by one.
Okay, I'll make it happen.
Addressed in the above commits. Let me know how this works for you.
Craft CMS 3:
You can try it now by setting your semver in your composer.json to look like this:
"nystudio107/craft-retour": "dev-develop as 3.2.26”,
Then do a composer clear-cache && composer update
…..
Craft CMS 4:
You can try it now by setting your semver in your composer.json to look like this:
"nystudio107/craft-retour": "dev-develop-v4 as 4.1.26”,
Then do a composer clear-cache && composer update
…..
Craft CMS 5:
You can try it now by setting your semver in your composer.json to look like this:
"nystudio107/craft-retour": "dev-develop-v5 as 5.0.10”,
Then do a composer clear-cache && composer update
We good @dande-sun ?
Great! Thank you so much!