-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
fix(files): properly forward open params from short urls #50807
base: master
Are you sure you want to change the base?
Conversation
93c4754
to
0aeb29e
Compare
/backport to stable31 |
/backport to stable30 |
/backport to stable29 |
0aeb29e
to
adcd9b9
Compare
adcd9b9
to
70394e0
Compare
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'; |
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.
This is an important point.
After a debug session with Christoph, we realised that it prevented routes.php
files to be included again when running tests. Making any subsequent route generation fail.
Considering we already test that app have been loaded with isset($this->loadedApps['core'])
and isset($this->loadedApps[$app])
, we assumed it was safe to require/include without _once
.
70394e0
to
d4e9a9c
Compare
Signed-off-by: skjnldsv <[email protected]>
d4e9a9c
to
93fc392
Compare
Fix #50155