Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Kentico 7 MVC View paths wrong for resources in masterpage

$
0
0
I'm using an MVC controller and view to facilitate custom routing in Kentico 7. The only issue with this is that content in the master page is referenced from https://{site}/{page}/~/{normal path from root} instead of https://{site}/{normal path from root}Page route in CMSDesk: /page/{param1}View in filesystem: \Views\Global\Page\Page\Page.aspx@%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page.aspx.cs" Inherits="Views_Global_Page" MasterPageFile="Root.master" %@ \Views\Global\Page\Page\Page.aspx.csusing System; using System.Data; using System.Text.RegularExpressions; using System.Web.Mvc; using System.Web; using System.Xml; using System.Xml.Xsl; using System.IO; using System.Net; using CMS.CMSHelper; using CMS.GlobalHelper; using CMS.PortalControls; using Saxon.Api; using CMS.DocumentEngine; using CMS.URLRewritingEngine; using System.Collections.Generic; using System.Text; using System.Web.Script.Serialization; using System.Linq; using CMS.DocumentEngine; public partial class Views_Global_Page : ViewPage { } Controller on filesystem: \App_Code\Controllers\Global\PageController.csnamespace CMS.Controllers.Global { public class PageController : Controller { ... public ActionResult Index(string param = "") { ... return View("Page/Page"); } } } Any ideas what could be causing this?

Viewing all articles
Browse latest Browse all 8901

Trending Articles