diff --git a/src/lib/navigation/locationbar.cpp b/src/lib/navigation/locationbar.cpp index bdd51808c..3c4afc06b 100644 --- a/src/lib/navigation/locationbar.cpp +++ b/src/lib/navigation/locationbar.cpp @@ -1,6 +1,6 @@ /* ============================================================ * Falkon - Qt web browser -* Copyright (C) 2010-2017 David Rosca +* Copyright (C) 2010-2018 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -207,7 +207,7 @@ LoadRequest LocationBar::createLoadRequest() const if (!req.isValid()) { // One word needs special handling, because QUrl::fromUserInput // would convert it to QUrl("http://WORD") - if (!t.contains(QL1C(' ')) && !t.contains(QL1C('.'))) { + if (t != QL1S("localhost") && !t.contains(QL1C(' ')) && !t.contains(QL1C('.'))) { req.setUrl(QUrl(t)); } else { const QUrl &guessed = QUrl::fromUserInput(t);