Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I wrote a search page and I am getting back results. I am getting back a content page with the id of 5105 and if I go through the admin console I can see the page with the id of 5105. But for some reason I cannot get this page (or any other page by id). In cshtml I tried using
And Nothing, null value is what I get.
My search service injects both UmbracoContextAccessor and UmbracoContextFactory and I leveraged EnsureContext within a using statement, same result, value is null.
When I try to get a page manually in a controller I also get null back when using
What am I missing? This is driving me insane.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted