Automatic authorisation process fails #1050
Labels
help wanted
resolution:duplicate
This issue has already been logged.
type:bug
Something isn't working.
Milestone
Describe the bug
Hi,
The automatic authorisation process is failing on one of our websites and redirecting to a 404 page on the external site. The issue appeared to be hosting-specific. Having reached out to our hosting provider support, here is their explanation:
Hi there,
We've not actively disallowed the plugin, but I think this issue is likely because the link it goes to does not collect the siteurl from the database, and instead just assumes the core files are in the webroot.
In this case the link should look like this:
https://example.co.uk/wp/wp-admin/authorize-application.php
Instead of this:
https://example/wp-admin/authorize-application.php
They can fix this in their code by using WordPress' get_site_url() function:
https://developer.wordpress.org/reference/functions/get_site_url/)
Steps to Reproduce
Screenshots, screen recording, code snippet
No response
Environment information
N/A
WordPress information
N/A
Code of Conduct
The text was updated successfully, but these errors were encountered: