I have a problem with the value being returned by
UmbracoContext.Current.IsFrontEndUmbracoRequest
If UmbracoContext.Current.IsFrontEndUmbracoRequest is giving me false... when it should give me true (its a page that is in the front end of the website) has anyone got any idea why I that value is false?
Just kicking this up, after almost a year...
We've just encountered problems with this function.
It also returns "false" if you call a surfacecontroller from the frontend. I don't know if that was what you're doing. But it caused us some headaches.
Is there a way to detect being in Back-End or Front-End of Umbraco Site?
Hello,
Is there is a code in C# or Javascript that can detect where user is view on Back-End or Front-End of Umbraco Site?
Hi Nguyen,
As I understand right, it's easy to do with UmbracoContext.IsFrontEndUmbracoRequest flag;
Thanks,
Alex
Hi Alex,
To access none-static member. We should use this:
Thanks Nguyen, nice tip!
I have a problem with the value being returned by UmbracoContext.Current.IsFrontEndUmbracoRequest
If UmbracoContext.Current.IsFrontEndUmbracoRequest is giving me false... when it should give me true (its a page that is in the front end of the website) has anyone got any idea why I that value is false?
Just kicking this up, after almost a year... We've just encountered problems with this function.
It also returns "false" if you call a surfacecontroller from the frontend. I don't know if that was what you're doing. But it caused us some headaches.
is working on a reply...