Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, mickaelperrin.
How about replacing patch functionality via service altering to change $response
and make it as TrustedRedirectResponse
.
As I see the last alterable point is RedirectResponseSubscriber::checkRedirectUrl
Below is patch with that idea.
What do you think?
Comment | File | Size | Author |
---|---|---|---|
#2 | replace-patch-via-service-altering-2854032-2.patch | 1.89 KB | vlad.dancer |
Comments
Comment #2
vlad.dancerComment #3
vlad.dancerOh. BTW, forgot to check for 'ngrok' in url before transforming
$response
to theTrustedRedirectResponse
Comment #4
lolandese CreditAttribution: lolandese commentedThe patch makes indeed the module work as advertised without the need of the included patch at misc/UrlHelper.patch that alters core. To test, I got the trusted host error message when going e.g. to the user login page at /user. After applying the patch from #2, all works fine.
BTW I included a link to the sandbox in the documentation at Set up a local development Drupal site on the latest Ubuntu LTS version | Develop guide on Drupal.org.
Can the sandbox be turned into a full project? I think there are a substantial amount of people using it.
Comment #5
Thomas Cys+1 on turning this sandbox into a full project!
Comment #6
Marko B CreditAttribution: Marko B commentedSeems this is not going anywhere, as 2 years after this patch is still not applied and project is in sandbox. I made a proper project here with patch applied https://www.drupal.org/project/ngrok_drupal as I need it in few projects and want to be able to use it straight away. Hope maintainer one day updates this, until then I will use this clone of mine :)
Comment #7
lolandese CreditAttribution: lolandese commentedCool. Can you copy-paste the project page content as well?
https://www.drupal.org/sandbox/mickaelperrin/2842335
Comment #8
lolandese CreditAttribution: lolandese commentedThere is a project application for this module that was actually approved. See related issue.
A pity it has not been converted into a full project as that is usually the intention of getting through this approval process (nowadays only needed to have security coverage).
Comment #9
Marko B CreditAttribution: Marko B commentedI am not sure how to handle this, don't want to look like stealing a project, but maybe give it some time, if nothing happens I can make a full proper description and all. Not sure how long is the process if we want to try and change maintainer of original project if current one is not interested and 2 years period of not doing anything should be long enough?
Comment #10
lolandese CreditAttribution: lolandese commentedEasiest is to drop him a note. If no answer is received, giving credit with a link to the user profile on the newly opened project page should be sufficient.
Considering this is a sandbox, the procedure described at Dealing with unsupported (abandoned) projects seems to be overkill.
Comment #11
mickaelperrin CreditAttribution: mickaelperrin as a volunteer commented@everyone, it looks like I have missed a *lot* of activity here !!! Sorry for that.
Feel free to fork and maintain this project. I would be happy to see it has a second life and could be useful for others!
Comment #12
Marko B CreditAttribution: Marko B commentedThank you on responding :)