-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
!!! TASK: Use configured baseUri in form action #100
base: master
Are you sure you want to change the base?
Conversation
We're pretty much in the process of elaborating the purposes and best approach towards /cc @bwaidelich @kitsunet |
Right, Christian is on it with neos/flow-development-collection#1755 Most likely the result will look like this: $uri = $this->baseUriProvider-> getConfiguredBaseUriOrFallbackToCurrentBaseUri(); |
Thanks for the feedback! Christian explained me the changes regarding the baseUri this morning in the Slack channel already. I'm happy to adapt it once they are released :) I just had to get it work for the current version anyway and therefore this PR is still done the old way for the moment. |
Ok, so as of https://github.com/neos/flow-development-collection/pull/1755/files the final solution is indeed |
70e00b1
to
8ac6011
Compare
8ac6011
to
41b1244
Compare
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.
Looks good apart from the one comment
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.
I took the freedom to make some (mostly cosmetic) tweaks.
Tested and merge this for the next major release. Thanks!!
@simstern unfortunately this breaks unit tests still and I don't have edit access to your PR It is a good measure to allow this when creating PRs for upstream Repos: |
FYI: We are thinking of getting rid of the notion of a global |
Thanks for your info and help on this. Makes sense to wait then. I tried to give you edit access, but it seems I cannot change this anymore (even though, it's documented here how to do it https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) |
$actionRequest->getHttpRequest()->getUri()
returns the original request Uri, which conflicts if the SettingNeos.Flow.http.baseUri
is overwritten.TBH: I'm not sure if this is really the best way to replace the base uri, so I'm happy for any feedback.
Closes #22