@using PlexRequests.UI.Helpers @Html.Partial("_Sidebar") @{ int port; if (Model.Port == 0) { port = 3579; } else { port = Model.Port; } var baseUrl = Html.GetBaseUrl(); var formAction = "/admin"; if (!string.IsNullOrEmpty(baseUrl.ToHtmlString())) { formAction = "/" + baseUrl.ToHtmlString() + formAction; } }