Articulate
Articulate copied to clipboard
Cannot return the absolute Url for individual blog posts.
I don't know whether this is an Umbraco bug or an Articulate one.
I'm working on integrating the engine into a website. As part of that integration I have static share links which require the absolute url. If I use the UmbracoHelper.UrlAbsolute(int contentId) method against a blog post id I only get a relative url back rather than the absolute url. On any standard node the method works perfectly.
that seems pretty strange, articulate blog posts nodes are not doing anything out of the ordinary from normal umbraco nodes (they are the same).
unfortunately no time to look atm though, if you can provide a way to replicate that'd be great.
what do you mean by 'static share links'? And where are you using UmbracoHelper from?
Sorry, that was a terrible attempt at raising an issue, here's some more detail.
The articulate blog is nested within the site and the issue only occurs when navigating to a specific category.
e.g:
This works
http://localhost:10002/about-the-fmb/consumer-blog/archive/test-post/
This doesn't
http://localhost:10002/about-the-fmb/consumer-blog/categories/TestCategory
I'm using the Umbraco helper from within model generation code. I'm not sure where I'm calling from is the issue since the first url works and I have a context. I wonder if routing has anything to do with it? I have no routes that would interfere within the application.
All I mean by "static share links" is social links using the static API rather than using the JavaScript enabled links. A la http://simplesharingbuttons.com/
That's because categories/tags (and others) aren't real umbraco nodes, they are virtual nodes.
I'll have to dig into the code to see what can be done there.
(by virtual nodes, i mean they are custom routes using the custom handlers)
Yeah, I just came to the same conclusion a moment ago. Cheers!