Custom Document Url's

Jacob Mallach asked on March 11, 2019 15:35

Hello,

I'm using CurrentDocument.DocumentUrlPath in some custom code that is filtering/retrievieng categories from the page url and query string. Where I'm having an issue is that some pages are using Custom Urls. My logic is not returning categories where the Custom Url is being used. I'm wondering, is there a call that will return the original url path and NOT the custom path?

Appreciate the help.

Correct Answer

Brenden Kehren answered on March 11, 2019 15:39

Have you queried the view directly to see what values are being stored in there?

SELECT *
FROM VIEW_CMS_Tree_JOINED
WHERE NodeAliasPath LIKE '/your-path/%'

In there you'll find out what is stored and what property you'd most likely need to retrieve to get the URL you're expecting.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Jacob Mallach answered on March 14, 2019 16:23

Very helpful. Thanks!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.