Thanks for your replies gents, really appreciate them.
I looked into the differences between the links as per Alex's advice and it turns out:
The pages which were showing UDIs didn't have a 'Publish at' date in the properties tab so, not yet knowing the internals of Umbraco's publishing, it looks like they weren't 'published'.
Setting a publish at date of today meant the correct url pulled through to the link (not the URI).
Weirdly, I can still visit these pages on the front end via the page url (they show fine) so i'm not sure why they aren't counted as published - this would have given me an obvious smell and clue.
Related Links unexpected Guids - convert these to Url?
I can't get my head around this.
Why do some of my pages return proper urls and some return GUIDs?
How can I convert a Guid to a url? I've seen some posts but none seem to work.
Really appreciate help with this one. It's all over the place in my application.
Resulting HTML:
Hmm...
I wonder if it's a conflict of model name.. try:
Hi Paul and Steve
What version of Umbraco are you using?
Is there any difference between links that are working and that returns udis?
Can you try this code:
Thanks,
Alex
Thanks for your replies gents, really appreciate them.
I looked into the differences between the links as per Alex's advice and it turns out:
The pages which were showing UDIs didn't have a 'Publish at' date in the properties tab so, not yet knowing the internals of Umbraco's publishing, it looks like they weren't 'published'.
Setting a publish at date of today meant the correct url pulled through to the link (not the URI).
Weirdly, I can still visit these pages on the front end via the page url (they show fine) so i'm not sure why they aren't counted as published - this would have given me an obvious smell and clue.
Best, Paul
Hi Paul
I think Nexu package can help you to track unpublished nodes - https://our.umbraco.org/projects/backoffice-extensions/nexu/
If you can visit the pages then they were published before and just continue to work, but agree with you that this is strange
Thanks,
Alex
is working on a reply...