Skip to content

Commit 4ea3cba

Browse files
authored
Added 'REDIRECT_URL' to route_class( )
1 parent 704933f commit 4ea3cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function route_class($http_method, $path, $class_method)
112112
$pattern = str_ireplace( '(:num)', '[0-9]+', $pattern );
113113
$pattern = str_ireplace( '(:any)', '[^\/]+', $pattern );
114114

115-
if (URL_PARSE == 'REQUEST_URI') {
115+
if (URL_PARSE == 'REQUEST_URI' || 'REDIRECT_URL') {
116116

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

0 commit comments

Comments
 (0)