Feature : Allow whitelisting to ignore url query params
-
Rather than have to list every permutation of a url that contains query params in the whitelist, it would be super handy to have either a flag, or the ability to add regex patterns to the whitelist.
my current work around has been to alter the
!in_array($url, $whitelist)
section of the redirect conditional check to!in_array(preg_replace('/\?.*/', '', $url), $whitelist)
Im not sure if there are any times you would want to whitelist only SOME urls with specific query params, but this solution works nicely when coupled with something like the WP JSON API; allowing all /wp-json/ end points to be excluded from the force login redirect
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Feature : Allow whitelisting to ignore url query params’ is closed to new replies.