Skip to content

Commit

Permalink
Merge pull request #520 from humhub/fix/global-calendar-url
Browse files Browse the repository at this point in the history
Fixed url for global calendar when prettyUrl is disabled
  • Loading branch information
luke- authored Jan 14, 2025
2 parents d0e1007 + e89a3b3 commit 58d5c72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Changelog
- Enh #512: Surround the widget wall entry links with a dedicated HTML class
- Enh #516: Improved calendar page URLs
- Fix #519: Fix issue where `IntlDateFormatter::parse()` failed to parse Bulgarian dates.
- Fix #520: Fix global calendar url when prettyUrl is disabled

1.6.4 (Unreleased)
-----------------------
Expand Down
2 changes: 1 addition & 1 deletion helpers/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function toCalendar(ContentContainerActiveRecord $container = null

public static function toGlobalCalendar()
{
return static::to(['/calendar']);
return static::to(['calendar/global']);
}

public static function toEditItemType(CalendarTypeIF $type, ContentContainerActiveRecord $container = null)
Expand Down

0 comments on commit 58d5c72

Please sign in to comment.