Skip to content

Commit

Permalink
Added 'REDIRECT_URL' to route_class( )
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-ang authored Sep 22, 2019
1 parent 704933f commit 4ea3cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function route_class($http_method, $path, $class_method)
$pattern = str_ireplace( '(:num)', '[0-9]+', $pattern );
$pattern = str_ireplace( '(:any)', '[^\/]+', $pattern );

if (URL_PARSE == 'REQUEST_URI') {
if (URL_PARSE == 'REQUEST_URI' || 'REDIRECT_URL') {

// Check for subfolders from DocumentRoot and include in endpoint
$sub = explode('/', dirname($_SERVER['SCRIPT_NAME']));
Expand Down

0 comments on commit 4ea3cba

Please sign in to comment.