@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Calendar event monograms, part 1. Event default URL should be install/E{id} instead of install/calendar/view/{id}

Summary: Ref T7928, Calendar event monograms, part 1. Default event URL should be install/E{id}

Test Plan: Create calendar event, event should open with install/E{id} URL. Edit event and cancel edit, URL should remain install/E{id}.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T7928

Differential Revision: https://secure.phabricator.com/D12578

+3 -5
+1 -2
src/applications/calendar/application/PhabricatorCalendarApplication.php
··· 34 34 35 35 public function getRoutes() { 36 36 return array( 37 + '/E(?P<id>[1-9]\d*)' => 'PhabricatorCalendarEventViewController', 37 38 '/calendar/' => array( 38 39 '' => 'PhabricatorCalendarViewController', 39 40 'all/' => 'PhabricatorCalendarBrowseController', ··· 46 47 => 'PhabricatorCalendarEventEditController', 47 48 'delete/(?P<id>[1-9]\d*)/' 48 49 => 'PhabricatorCalendarEventDeleteController', 49 - 'view/(?P<id>[1-9]\d*)/' 50 - => 'PhabricatorCalendarEventViewController', 51 50 ), 52 51 ), 53 52 );
+1 -2
src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
··· 163 163 if ($this->isCreate()) { 164 164 $submit->addCancelButton($this->getApplicationURI()); 165 165 } else { 166 - $submit->addCancelButton( 167 - $this->getApplicationURI('event/view/'.$status->getID().'/')); 166 + $submit->addCancelButton('/E'.$status->getID()); 168 167 } 169 168 170 169 if ($request->isAjax()) {
+1 -1
src/view/phui/calendar/PHUICalendarListView.php
··· 117 117 array( 118 118 'sigil' => 'has-tooltip', 119 119 'class' => 'phui-calendar-item-link', 120 - 'href' => '/calendar/event/view/'.$event->getEventID().'/', 120 + 'href' => '/E'.$event->getEventID(), 121 121 'meta' => array( 122 122 'tip' => $tip, 123 123 'size' => 200,