Open mglaman opened 2 months ago
This hack seemed to fix it
let originalPath = url.pathname;
const extension = path.split('.').pop();
if(vHostEntrypoint)
{
if (extension === 'php') {
scriptName = vHostPrefix + '/' + rewrite.substr((vHostPrefix || this.prefix).length).replace(/^\/+/, '')
} else {
scriptName = vHostPrefix + '/' + vHostEntrypoint;
}
}
Hmm, that's annoying. Let me go over the code and I'll get a fix going.
I set up a file called
baseurl.php
to debug Symfony request object:The path is
/cgi/drupal/baseurl.php
The output is
The script name is always overwritten when it shouldn't be.
~This should only happen if the
path
is rewritten to the docrootindex.php
.~ this worked only when going to a specific file