Unknown device page has pre-filled Discover IP

This commit is contained in:
Oliver Gorwits
2014-03-02 21:03:06 +00:00
parent a64eb49c27
commit 3ff9f3c587
2 changed files with 2 additions and 1 deletions

View File

@@ -167,7 +167,7 @@ get '/device' => require_login sub {
});
if ($dev->count == 0) {
return redirect uri_for('/', {nosuchdevice => 1})->path_query;
return redirect uri_for('/', {nosuchdevice => 1, device => $q})->path_query;
}
# if passed dns, need to check for duplicates