Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14737605
D12578.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D12578.diff
View Options
diff --git a/src/applications/calendar/application/PhabricatorCalendarApplication.php b/src/applications/calendar/application/PhabricatorCalendarApplication.php
--- a/src/applications/calendar/application/PhabricatorCalendarApplication.php
+++ b/src/applications/calendar/application/PhabricatorCalendarApplication.php
@@ -34,6 +34,7 @@
public function getRoutes() {
return array(
+ '/E(?P<id>[1-9]\d*)' => 'PhabricatorCalendarEventViewController',
'/calendar/' => array(
'' => 'PhabricatorCalendarViewController',
'all/' => 'PhabricatorCalendarBrowseController',
@@ -46,8 +47,6 @@
=> 'PhabricatorCalendarEventEditController',
'delete/(?P<id>[1-9]\d*)/'
=> 'PhabricatorCalendarEventDeleteController',
- 'view/(?P<id>[1-9]\d*)/'
- => 'PhabricatorCalendarEventViewController',
),
),
);
diff --git a/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php b/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
--- a/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
+++ b/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
@@ -163,8 +163,7 @@
if ($this->isCreate()) {
$submit->addCancelButton($this->getApplicationURI());
} else {
- $submit->addCancelButton(
- $this->getApplicationURI('event/view/'.$status->getID().'/'));
+ $submit->addCancelButton('/E'.$status->getID());
}
if ($request->isAjax()) {
diff --git a/src/view/phui/calendar/PHUICalendarListView.php b/src/view/phui/calendar/PHUICalendarListView.php
--- a/src/view/phui/calendar/PHUICalendarListView.php
+++ b/src/view/phui/calendar/PHUICalendarListView.php
@@ -117,7 +117,7 @@
array(
'sigil' => 'has-tooltip',
'class' => 'phui-calendar-item-link',
- 'href' => '/calendar/event/view/'.$event->getEventID().'/',
+ 'href' => '/E'.$event->getEventID(),
'meta' => array(
'tip' => $tip,
'size' => 200,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 8:18 AM (20 h, 46 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7022506
Default Alt Text
D12578.diff (2 KB)
Attached To
Mode
D12578: Calendar event monograms, part 1. Event default URL should be install/E{id} instead of install/calendar/view/{id}
Attached
Detach File
Event Timeline
Log In to Comment