only rewrite the url of copy operation if the operation has really been registered.
code indention.