At the end of the battle, there should be an option button called "Upload and share replay" or something similar. If you press on that, it should bring up a screen with a link and a button that says "Copy." If you press this, it will copy the replay link to your clipboard/copy-paste.
The uploaded replay will look like this one.