Which version are you running? There is a bug reported for that issue, see https://world.episerver.com/support/Bug-list/bug/CMS-9578 that is fixed in CMS.Core 11.3.3
are yopu getting the Contentlink on your Model.Settings.NewletterSuccess?
Running a version below 11.3.3 and currently there is no option to upgrade. I have tried the workaround suggested in the bug you linked with no success (getting the same results). Is there another way to get the friendly url of a page?
@Radek Yes, contentLink is available as usual
Thanks a lot!
I am trying to get a friendly-url for a page of type ContentReference (property in site settings) in another page's controller.
In site settings:
In the base controller I am populating the "Model" in override method OnActionExecuting():
Other page's controller:
But I get a NullReference exception on line 21:
Debugging shows that neither the "urlResolver" nor the "SiteSettings.NewsletterSuccessPageRef" are null.
Any ideas why?