-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
feat: support route pattern /categories/{categorySlug}/{postSlug} for post access #7331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
application/src/main/java/run/halo/app/theme/router/factories/PostRouteFactory.java
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7331 +/- ##
============================================
+ Coverage 57.18% 57.49% +0.30%
- Complexity 4066 4105 +39
============================================
Files 721 722 +1
Lines 24546 24673 +127
Branches 1612 1628 +16
============================================
+ Hits 14036 14185 +149
+ Misses 9882 9841 -41
- Partials 628 647 +19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
当路由设置为
|
|
由于无法支持 /{categorySlug}/{slug} 我在设置中去掉了这个选项,只能使用 /categories/{categorySlug}/{slug} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
/milestone 2.20.x
What this PR does / why we need it:
文章访问路径支持设置
/categories/{categorySlug}/{postSlug}
的形式Which issue(s) this PR fixes:
Fixes #7330
Does this PR introduce a user-facing change?