Skip to content

Commit

Permalink
Fixes #516 - Add Page: Custom entity page triggers unresolvable valid…
Browse files Browse the repository at this point in the history
…ation error
  • Loading branch information
HeyJoel committed Aug 2, 2022
1 parent 42dd946 commit 7b49785
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![NuGet](https://img.shields.io/nuget/v/Cofoundry.Web.Admin.svg)](https://www.nuget.org/packages/Cofoundry.Web.Admin/)
[![Gitter](https://img.shields.io/gitter/room/cofoundry-cms/cofoundry.svg)](https://gitter.im/cofoundry-cms/cofoundry)

Cofoundry is an open source .Net Core CMS and application framework focusing on:
Cofoundry is an open source .NET Core CMS and application framework focusing on:

- Code first development
- Unobtrusive integration into your application
Expand Down
5 changes: 0 additions & 5 deletions src/Cofoundry.BasicTestSite/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@

var app = builder.Build();

if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
}

app.UseHttpsRedirection();
app.UseCofoundry();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ function (
loadState = vm.saveLoadState;
}

if (vm.command.pageType == 'CustomEntityDetails') {
vm.command.urlPath = undefined;
} else {
vm.command.customEntityRoutingRule = undefined;
}

setLoadingOn(loadState);

pageService
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ function (
loadState = vm.saveLoadState;
}

if (vm.command.pageType == 'CustomEntityDetails') {
vm.command.urlPath = undefined;
} else {
vm.command.customEntityRoutingRule = undefined;
}

setLoadingOn(loadState);

pageService
Expand Down

0 comments on commit 7b49785

Please sign in to comment.