Return URL customization
-
Dear Indigo team,
First of all, thanks for the great plugin. While implementing we ran into an issue with the generated redirect URL.
In class-gf-mollie.php, line 240 the URL is generated as follows:
if ( $server_port != '80' ) { $pageURL .= $_SERVER['SERVER_NAME'] . ':' . $server_port . $_SERVER['REQUEST_URI']; } else { $pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; }
However, on our managed hosting platform (https://pantheon.io/) this format will redirect to their generic ‘app server’ URL rather than our own site. A temporary fix for us was to change the $pageURL value to:
$pageURL .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
But of course, we’d rather not change your plugin code.
Would it be possible to provide an option to override the base return URL in a future version? It would resolve this issue and others like it where the hosting setup breaks this approach.
Best,
Stephen
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Return URL customization’ is closed to new replies.