diff --git a/theme/flatcard.html b/theme/flatcard.html
index 16e4224..739f008 100644
--- a/theme/flatcard.html
+++ b/theme/flatcard.html
@@ -558,7 +558,9 @@
var $url = document.getElementById('url');
if ($url) {
- $url.innerHTML = location.protocol + '//' + location.host + $url.innerHTML;
+ let url = location.href;
+ url = url.substr(0, url.length-8);
+ $url.innerHTML = url.replace(/&/g, '&');
$url.style.height = $url.scrollHeight + 'px';
}