Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize forgot password link #51

Open
spacedmonkey opened this issue May 9, 2015 · 3 comments
Open

Localize forgot password link #51

spacedmonkey opened this issue May 9, 2015 · 3 comments

Comments

@spacedmonkey
Copy link
Contributor

If you are www.site1.com and you click on the forgotten password link, it takes you to www.mainsite.com/wp-login.php?action=lostpassword . This is confusing, as this url as not the same as the one they came from and the users may think that this url is an error. In my tests, if go to www.site1.com/wp-login.php?action=lostpassword it seems to work.

This should be as simple as this

add_filter( 'lostpassword_url', __NAMESPACE__ . '\\mangle_url', -10, 4 );
@chrismccoy
Copy link

i added this to the mu plugins directory https://gist.github.com/eteubert/293e07a49f56f300ddbb

@scarstens
Copy link

its not quite that simple @spacedmonkey however, with a function I created for another issue resolution, I was able to do something very similar to fix. Will commit and send in my PR. If you want to try our fork to see if it fixes it for you, you may.
https://github.com/fansided/Mercator

@scarstens
Copy link

#59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants