mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Corrected more port issues in generated urls on Azure hosting
Was preventing Live Writer from auto onfiguring. Replace all Request.Url occurences --HG-- branch : dev
This commit is contained in:
@@ -59,7 +59,7 @@ html.dyn #themepreview button.preview { display:none; }
|
||||
<% using(Html.BeginFormAntiForgeryPost(Url.Action("Preview", new{Controller="Admin", Area="Orchard.Themes"}), FormMethod.Post, new { @class = "inline" })) { %>
|
||||
<fieldset>
|
||||
<span><%=T("You are previewing: ")%></span>
|
||||
<%=Html.Hidden("ReturnUrl", Context.Request.Url)%>
|
||||
<%=Html.Hidden("ReturnUrl", Context.Request.RawUrl)%>
|
||||
<%=Html.DropDownList("ThemeName", Model.Themes, new {onChange = "this.form.submit();"})%>
|
||||
<button type="submit" class="preview" title="<%=_Encoded("Preview")%>" name="submit.Preview" value="<%=_Encoded("Preview")%>"><%=_Encoded("Preview")%></button>
|
||||
<button type="submit" title="<%=_Encoded("Apply")%>" name="submit.Apply" value="<%=_Encoded("Apply")%>"><%=_Encoded("Apply this theme") %></button>
|
||||
|
@@ -1,4 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Utility.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%><%
|
||||
var menu = Model.Menu.FirstOrDefault();
|
||||
@@ -14,7 +15,7 @@
|
||||
if (counter == count)
|
||||
sbClass.Append("last ");
|
||||
|
||||
if (string.Equals(menuItem.Href, Request.Url.AbsolutePath, StringComparison.InvariantCultureIgnoreCase))
|
||||
if (string.Equals(menuItem.Href, Request.ToUrlString(), StringComparison.InvariantCultureIgnoreCase))
|
||||
sbClass.Append("current ");
|
||||
|
||||
var classValue = sbClass.ToString().TrimEnd(); %>
|
||||
|
Reference in New Issue
Block a user