-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(files): properly forward open params from short urls #50807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Signed-off-by: skjnldsv <[email protected]>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -160,11 +160,12 @@ public function loadRoutes($app = null) { | |
| $this->root->addCollection($collection); | ||
| } | ||
| } | ||
|
|
||
| if (!isset($this->loadedApps['core'])) { | ||
| $this->loadedApps['core'] = true; | ||
| $this->useCollection('root'); | ||
| $this->setupRoutes($this->getAttributeRoutes('core'), 'core'); | ||
| require_once __DIR__ . '/../../../core/routes.php'; | ||
| require __DIR__ . '/../../../core/routes.php'; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an important point. Considering we already test that app have been loaded with |
||
|
|
||
| // Also add the OCS collection | ||
| $collection = $this->getCollection('root.ocs'); | ||
|
|
@@ -486,7 +487,7 @@ private function getAttributeRoutes(string $app): array { | |
| * @param string $appName | ||
| */ | ||
| private function requireRouteFile($file, $appName) { | ||
| $this->setupRoutes(include_once $file, $appName); | ||
| $this->setupRoutes(include $file, $appName); | ||
skjnldsv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I meant is adding
openfilehere is a bugfix ✅Adding
opendetailsis a feature I do not see the usecase on this endpoint.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, it's kinda both you're right!
I'll adjust the backports to only cover the openfile anyway :)