Revert "Revert "Make permalink parsing consistent with pages""
Merge pull request #1 from orsolya00/revert-3013-revert-2921-post-dest

Revert "Revert "Make permalink parsing consistent with pages""