public virtual async Task <ActionResult> Index(string slug) { var page = await _pagesService.FindBySlugAsync(slug); if (page == null || !page.Published) { return(View("PageNotFound")); } //Current page editor page URL (for Admin User) ViewBag.AdminEditCurrentPage = $"PopupWindows('{Url.Action("Editor", "ManagePages", new { area = "Admin" })}', 'PageEditor', 1200, 670, {{ id: {page.Id} }}, 'get')"; return(View("Index", page)); }