i7MEDIA / mojoportal

mojoPortal is an extensible, cross database, mobile friendly, web content management system (CMS) and web application framework written in C# ASP.NET.
https://www.mojoportal.com
Other
197 stars 100 forks source link

Superflexi _ModuleLinks.cshtml has bad url for footer edit #216

Closed Isaac-Hall closed 1 year ago

Isaac-Hall commented 1 year ago

In the wwwroot/Views/SuperFlexi/_ModuleLinks.cshtml partial view, the "edit footer" URL is bad. There is no /EditFooter.aspx, it should use the same link as EditHeader but with a query, ?f=true.

Replacing lines 12-15 with the following will fix it.

@if (Model.Config.UseFooter)
{
        <a class="ModuleEditLink flexi-footer-edit" href="~/SuperFlexi/EditHeader.aspx?f=true&pageid=@Model.Module.PublishedToPageId&mid=@Model.Module.Id"><span class="fa fa-edit"></span> @SuperFlexiResources.EditFooter</a>
}