Closed (outdated)
Project:
Stage File Proxy
Version:
4.0.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2025 at 17:27 UTC
Updated:
11 Aug 2026 at 12:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
hanoiiMR!93 added.
Comment #4
smustgrave commentedPossible dup https://www.drupal.org/project/stage_file_proxy/issues/3499660
Either way probably should have a test
Comment #5
hanoiiHmm, definitely a dupe, I tried searching for something similar but my keyword-fu was probably not on its peak. I will comment there, I think this patch is cleaner and rely on a core function rather than string replacements.
Comment #6
hanoiiRebased
Comment #7
lisotton commentedIssue was already fixed in the latest version of the module.
Comment #8
hanoiiI kind of feel that this is a better fix, currently the logic is doing things that are really not necessary.
Why do all that to remove things from baseUrl() when base basePath() already gives yo what you want?
You are calling baseUrl() that is $base_url + basePath() to then remove $base_url.
Comment #9
cgoffin commentedHere also a patch to use in your projects.
Comment #10
cgoffin commentedAnd the fix is working for me. Thanks!
Comment #11
smustgrave commentedIf someone wants to RTBC I can merge.
Comment #12
smustgrave commentedComment #13
smustgrave commentedActually can this one get a summary update about why it’s still needed please
Comment #14
smustgrave commentedCan always be re-opened but please address #13 if you do.