diff --git a/index.html b/index.html
index bc72a68..145e37a 100644
--- a/index.html
+++ b/index.html
@@ -133,8 +133,8 @@
Cmdr.searchHelp.style.height = Math.ceil(Cmdr.commands.length / 2) + 'rem';
Cmdr.searchText.value = '';
} else {
- q = q.split(':');
Cmdr.location = Cmdr.default + encodeURIComponent(q);
+ q = q.split(':');
Cmdr.commands.forEach(function(command) {
if (q[0] === command.key) {