We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66be9c commit 5f3da98Copy full SHA for 5f3da98
core/routes.php
@@ -92,7 +92,13 @@
92
});
93
94
// Sharing routes
95
-$this->create('files_sharing.sharecontroller.showShare', '/s/{token}')->action(function ($urlParams) {
+$this->create('files_sharing.sharecontroller.showShare', '/s/{token}')->action(static function ($urlParams) {
96
+ $phoenixBaseUrl = \OC::$server->getConfig()->getSystemValue('phoenix.baseUrl', null);
97
+ if ($phoenixBaseUrl) {
98
+ $token = $urlParams['token'];
99
+ \OC_Response::redirect("$phoenixBaseUrl/index.html#/s/$token");
100
+ return;
101
+ }
102
$app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
103
$app->dispatch('ShareController', 'showShare');
104
0 commit comments