emmanueltissera / umbraco-headless-uduf

Tee-Phrase website running on .NET Core 2.2 MVC with Umbraco Headless (beta)
1 stars 2 forks source link

URL is null in Content Type Model #1

Open emmanueltissera opened 5 years ago

emmanueltissera commented 5 years ago

When this code is run, the URL comes up null for this Design model in all places it is used. Weird As! Can you let me know if I'm doing anything wrong, please?

https://github.com/emmanueltissera/umbraco-headless-uduf/blob/70b504875fbf46b84c8b04e01af0fc1206e8d3b7/TeePhrase/Views/Shared/DisplayTemplates/DesignTile.cshtml#L5

Same issue for Shop model.

https://github.com/emmanueltissera/umbraco-headless-uduf/blob/70b504875fbf46b84c8b04e01af0fc1206e8d3b7/TeePhrase/Views/Shared/_FooterNavigation.cshtml#L29

sitereactor commented 5 years ago

I made a minor tweak in the client library so the ContentBase class now includes a Url property and I verified that DesignTile.cshtml renders the link correct with my changes. Also see incoming PR.