diff --git a/layouts/shortcodes/codeimporter.html b/layouts/shortcodes/codeimporter.html
index d461b5bb..952c28a8 100644
--- a/layouts/shortcodes/codeimporter.html
+++ b/layouts/shortcodes/codeimporter.html
@@ -4,7 +4,7 @@
{{ $startLine = sub $startLine 1 }}
{{ $endLine := .Get "endLine" | default -1 | int }}
{{ $selectedLines := slice }}
-{{ with resources.GetRemote ( printf $url ) }}
+{{ with resources.GetRemote (urls.Parse $url) }}
{{ $lines := split .Content "\n" }}
{{ $totalLine := $lines | len }}