wp-media/search-and-replace

Domain Replace "With" should always end with slash?

widoz opened this issue · 2 comments

widoz commented

Trying to make a replacement like:

Search For: http://localhost/wp/search-and-replace/
Replace With: http://localhost/wp/search-and-replace

I get correctly a new domain url but without slash the url become something like:
http://localhost/wp/search-and-replacewp-content/...

bvdv commented

If I understand correctly, S&R plugin should replace strictly "Search for:" to "Replace with:". It is mean Domain Replace "With" should be filled strictly that user want to get, so slash is necessary. This question will be very useful for documentation as example for avoiding problems.

Right, the function should do what the user add as input. It is in the responsibility of the user. Currently was the old idea to help them.