I'm trying to understand how to retrieve full (absolute, not relative, not starting with ~/) page URLs in a multilingual website. Sitefinity knows about them. All I want is get the URL Sitefinity is using for a page.
In case I have the page id (Me.LinkPageGUID in the code below), this is what I've come up with:
PageNode = App.WorkWith.Pages.LocatedIn(Fluent.Pages.PageLocation.Frontend).Where(
(p) p.Id =
= Page.Request.Url.Scheme & System.Uri.SchemeDelimiter & Page.Request.Url.Host & (
.Link1.NavigateUrl = FullDomain & PageUrl
1) It works fine, but it seems a bit overcomplicated. Is there a cleaner way to achieve the same thing?
2) I haven't figured this one out: From within a forum widget, in case I have the GUID of a forum, how do I get the URL of the page that has been configured to display the forum threads? I can get to the Forum object, but all it exposes is a DefaultPageId property. I'm not sure what to do with that, or if I need it at all. It seems to be the Id of the current page, which is not what I need.