Strip incorrect "mode" parameter from Url.
Fix paste action in URL, see https://github.com/MetaModels/core/issues/497.
Code style.