WordPress will always cut the end slash, there’s really no way around that. What you need to do is configure Apache to redirect directories entered as this: /directory to this: /directory/ . Apache should be configured this way by default.
I gave up. It’s just for local testing between my PC and the Mac anyway. Apache is configured to put the slash at the end. No idea what’s going wrong. And no more time to waste on the issue. Maybe WordPress could just leave the slash where I put it, in some future versionâ€¦
Another thing I don’t understand is why sometimes the address will be the IP (numbers) and sometimes Â»localhostÂ«. So many mysteries unsolved 🙂