mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fix issue with generating LINK tags for Live Writer manifests
Use "AbsoluteAction" helper method instead of hard-coded "http://localhost:30320". --HG-- branch : dev
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using System.Web.Mvc;
|
using System.Web.Mvc;
|
||||||
using Orchard.Blogs.Models;
|
using Orchard.Blogs.Models;
|
||||||
|
using Orchard.Mvc.Extensions;
|
||||||
|
|
||||||
namespace Orchard.Blogs.Extensions {
|
namespace Orchard.Blogs.Extensions {
|
||||||
public static class UrlHelperExtensions {
|
public static class UrlHelperExtensions {
|
||||||
@@ -16,11 +17,11 @@ namespace Orchard.Blogs.Extensions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static string BlogLiveWriterManifest(this UrlHelper urlHelper, string blogSlug) {
|
public static string BlogLiveWriterManifest(this UrlHelper urlHelper, string blogSlug) {
|
||||||
return urlHelper.Action("LiveWriterManifest", "Blog", new { blogSlug, area = "Orchard.Blogs" });
|
return urlHelper.AbsoluteAction(() => urlHelper.Action("LiveWriterManifest", "Blog", new { blogSlug, area = "Orchard.Blogs" }));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string BlogRsd(this UrlHelper urlHelper, string blogSlug) {
|
public static string BlogRsd(this UrlHelper urlHelper, string blogSlug) {
|
||||||
return urlHelper.Action("Rsd", "Blog", new { blogSlug, area = "Orchard.Blogs" });
|
return urlHelper.AbsoluteAction(() => urlHelper.Action("Rsd", "Blog", new { blogSlug, area = "Orchard.Blogs" }));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string BlogArchiveYear(this UrlHelper urlHelper, string blogSlug, int year) {
|
public static string BlogArchiveYear(this UrlHelper urlHelper, string blogSlug, int year) {
|
||||||
|
@@ -118,7 +118,6 @@ namespace Orchard.UI.Resources {
|
|||||||
if (!string.IsNullOrEmpty(link.Href)) {
|
if (!string.IsNullOrEmpty(link.Href)) {
|
||||||
sb
|
sb
|
||||||
.Append(@" href=""")
|
.Append(@" href=""")
|
||||||
.Append(@"http://localhost:30320")
|
|
||||||
.Append(html.AttributeEncode(link.Href))
|
.Append(html.AttributeEncode(link.Href))
|
||||||
.Append(@"""");
|
.Append(@"""");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user