Woocommerce is encoding the authorization endpoint

admin

Administrator
Staff member
I am facing a weird issue with woocommerce authentication. When I try to authenticate my vue app from URL -
Code:
/wc-auth/v1/authorize?app_name=example.com
it then redirects to
Code:
/wc-auth%2Fv1/access_granted/
and gives 404 error.
Notice <strong>&quot;%2F&quot;</strong> in the URL. If I edit <strong>&quot;%2F&quot;</strong> to <strong>/</strong> in the address bar, it works fine. I don't know what I am doing wrong here. I guess woocommerce/wordpress is encoding the url. Any suggestions how to solve this would be very helpful.