This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This thread is resolved. Here is a description of the problem and solution.
Problem: I am using PHP to pull the slug for a custom post type, but the slug is not showing correctly and the link is breaking.
Solution: You will need to adjust your code to use the urldecode, because by default browsers want urls encoded. One of our developers shared this link which should help point you in the right direction: https://www.php.net/manual/en/function.urldecode.php
Relevant Documentation: https://www.php.net/manual/en/function.urldecode.php