-
Notifications
You must be signed in to change notification settings - Fork 106
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
Reintroduce App::$page as App::$urlBuildingIndexPage #2096
Conversation
some results from tests:
thinking about the behaviour of url building in browser, writing same if The same happens when useRequestUrl=true (the reference path is taken from request url):
i have taken only the first test results but all the inconsistency comes from relative/absolute uri paths and when to added index.php Let's discuss about this this must be merged before #2095 |
@mvorisek what do you think about this? align the test results of App::url to old response or rework it to make it consistent? You can see them in the tests |
definitely to be consistent/correct in a long term - is this how this PR is coded now? |
Sorry, added now App::$urlBuildingPage with default value = index to get test results. IMHO even minimal tests with the actual url method are tests against inconsistent results, for example :
If in first case returns I think I can :
|
This is basically a few LoC with no BC-break. Separate PR is fine, but one PR together with the tests is fine as well. So I propose:
|
OK, so:
OK i do it later today and close without merging the other PR |
OK, this add successful tests + App::$urlBuildingPage Even if App::$page was not used so much by the community, i think must be add a comment for the release, something like: [BC] App::$page changed to App::$urlBuildingPage i go ahead with the other PR |
updated title + marked #2065 as BC-break, release notes will be rebuilt once this PR is merged |
src/App.php
Outdated
|
||
// add sticky arguments | ||
foreach ($this->stickyGetArguments as $k => $v) { | ||
if ($v && isset($_GET[$k])) { | ||
$args[$k] = $_GET[$k]; | ||
if ($v && isset($queryParams[$k])) { |
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.
to be done in #2101
@@ -68,123 +67,4 @@ public function testUnexpectedOutputLateError(): void | |||
ob_end_clean(); | |||
} | |||
} | |||
|
|||
public function provideUrlBuildingCases(): iterable |
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.
merged into #2095 and reverted from this PR
BC break: remove
App::getRequestUrl()
protected method which was misleading alias for request URL path