abp icon indicating copy to clipboard operation
abp copied to clipboard

Custom public index page for CMS kit occurs error when upgrade to 8.0.2

Open juchunwei opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

I upgrade from 7.4 to 8.0.2, and I have my custom public index page, but got this error message. What should I do? Thanks!

InvalidOperationException: Using ExpandEndpoint requires that the replaced endpoint have a unique priority. The following endpoints were found with the same priority: /Public/CmsKit/Pages/Index /Public/CmsKit/Pages/Index

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

8.0.2

User Interface

MVC

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

juchunwei avatar Jan 22 '24 12:01 juchunwei

Did you apply Migration Guide steps while upgrading? https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-8_0#moved-the-cms-kit-pages-features-routing-to-a-dynamicroutevaluet

We've changed URL handling logic to DynamicRouteValueTransformer in v8.0. https://github.com/abpframework/abp/pull/17642 Probably you still use older URL pattern from v7.4

Can you share @page "..." line of your custom cshtml file?

It's @page "/cmskit/page" in the latest version 👇 https://github.com/abpframework/abp/blob/d8dd1892404285c7bd311bcb7ba2f21dc52c4627/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/Public/CmsKit/Pages/Index.cshtml#L1

enisn avatar Jan 23 '24 10:01 enisn