RankMath - Allow changing of the canonical URL
If you have activated the Third Party Plugin - RankMath you might encounter a compatibility issue with the Ultimate Member user profile URL for canonical and open graph URL tags of RankMath. The code below will fix the compatibility issue: