aaemnnosttv / wp-cli-login-command

Log in to WordPress with secure passwordless magic links.
https://aaemnnost.tv/wp-cli-commands/login/
MIT License
300 stars 48 forks source link

Add support for magic URLs with trailing slashes #63

Closed aaemnnosttv closed 1 year ago

aaemnnosttv commented 1 year ago

Currently the command always creates URLs without a trailing slash, however there can be cases where a trailing slash is added at the web server level. This PR allows Magic URLs to work the same with or without a trailing slash.

This is a change at the server plugin level so existing installs seeking to benefit from this enhancement would need to re-install the server plugin (wp login install --yes) but it isn't a requirement of the command that would require all installs to update.

Resolves #40