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
Hi..
In uBlogsyRSS.cshtml file there in these lines to get the blog url and insert it in the rss feed.
// get blog url string blogUrl = Request.Url.AbsoluteUri .Replace(Model.NiceUrl(), string.Empty) .TrimEnd("/".ToCharArray());
and then inserts it in the item node:
<item> <title>@p.GetProperty("uBlogsyContentTitle").Value</title> <author>@p.GetProperty("uBlogsyPostAuthor").Value</author> <comments>@[email protected]</comments> <description>@p.GetProperty("uBlogsyContentBody").Value.StripHtml().Trim()</description> <link>@[email protected]</link> <guid>@[email protected]</guid> <pubDate>@p.GetProperty("uBlogsyPostDate").Value.FormatDateTime("ddd, dd MMMM yyyy HH:mm:ss") </pubDate> </item>
But when it doesn't seem to replace with Model.Id?
I get a link like this:
http://www.mydomain.dk/blog/rss.aspx/blog/posts/2013/link-to-my-post/
But when I change the blogUrl to this and just insert a static string I get a correct url:
// get blog url string blogUrl = Request.Url.AbsoluteUri .Replace("/blog/rss.aspx", string.Empty) .TrimEnd("/".ToCharArray());
which give me this link:
http://www.mydomain.dk/blog/posts/2013/link-to-my-post/
I have installed uBlogsy v. 2.1.1.2 and I am using Umbraco v. 4.11.9 ..
/Bjarne
Thanks.
I'll look into it.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get wrong url in rss for blog posts
Hi..
In uBlogsyRSS.cshtml file there in these lines to get the blog url and insert it in the rss feed.
and then inserts it in the item node:
But when it doesn't seem to replace with Model.Id?
I get a link like this:
But when I change the blogUrl to this and just insert a static string I get a correct url:
which give me this link:
I have installed uBlogsy v. 2.1.1.2 and I am using Umbraco v. 4.11.9 ..
/Bjarne
Thanks.
I'll look into it.
is working on a reply...