openid-connect-generic icon indicating copy to clipboard operation
openid-connect-generic copied to clipboard

Use site_url for the rewrite_rule when alternate_redirect_uri is true

Open StaymanHou opened this issue 4 years ago • 0 comments

All Submissions:

Changes proposed in this Pull Request:

For better consistency, use site_url for the rewrite_rule instead of hard-coding the path when alternate_redirect_uri is true.

The change is made primarily to fix a problem when WP_SITEURL is set to a subdirectory while alternate_redirect_uri is set to true.

How to test the changes in this Pull Request:

  1. Set WP_SITEURL to a subdirectory
  2. Check the Alternate Redirect URI option in settings
  3. Attempt a login with OpenID Connect

StaymanHou avatar Sep 13 '21 20:09 StaymanHou