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 the front end preview #1972
Conversation
leofeyer
commented
Jul 23, 2020
Q | A |
---|---|
Fixed issues | Fixes #1968 |
Docs PR or issue | - |
|
I don't think this will work, because by the time the method is called, there is no
I think the current fix is correct. |
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.
the new test is wrong, it falls into the first if-condition in BackendPreviewController
. Also, the request object does not have a getBaseUrl()
mock.
Description ----------- | Q | A | -----------------| --- | Fixed issues | Fixes contao#1968 | Docs PR or issue | - Commits ------- 8f44044 Fix the front end preview 0c321e4 Use Request::getBaseUrl() 9e3c402 Reset the tests 3148aee Adjust the test