We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 415db86 commit 721d05eCopy full SHA for 721d05e
2 files changed
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Release Notes for Craft CMS 5
2
3
+## Unreleased
4
+
5
+- Fixed a bug where entries weren’t redirecting back to their section’s page’s URL by default.
6
7
## 5.9.20 - 2026-04-14
8
9
- Fixed an issue that prevented Craft from being installed. ([#18700](https://github.com/craftcms/cms/issues/18700))
src/elements/Entry.php
@@ -2275,7 +2275,8 @@ protected function cpEditUrl(): ?string
2275
*/
2276
public function getPostEditUrl(): ?string
2277
{
2278
- return UrlHelper::cpUrl('entries');
+ $page = $this->getSection()?->getPage();
2279
+ return UrlHelper::cpUrl(sprintf('content/%s', $page ? StringHelper::toKebabCase($page) : 'entries'));
2280
}
2281
2282
/**
0 commit comments