Problem/Motivation
The $this->settings->get('file_public_path') is not always there.
This causes all the css and js routes to be redirected to the agreement page, which breaks page design.
Steps to reproduce
Proposed resolution
Use the PublicStream::basePath as a fallback when file_public_path is not defined.
Remaining tasks
-
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix-public-path-3587409-2.patch | 1022 bytes | nagy.balint |
Issue fork agreement-3587409
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
nagy.balint commentedHere is a patch for the issue.
Comment #3
mradcliffeThank you for the report, and the patch, @nagy.balint! I appreciate it.
Can you create a merge request for the patch if you have the time? I set the status to Needs work, but I think the changes probably seem good enough.
I added the issue summary template to the issue summary.
Comment #5
nagy.balint commentedI changed it to simply use https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21StreamWra...
since that already uses Settings::get('file_public_path'
Comment #6
mradcliffeThank you again. I reviewed and then set the merge request to auto-merge.
I will probably tag a new release sometime within the next week or two.