Uri resolve(String command) => _prefix.resolve( command.isEmpty ? _prefix.path.replaceFirst(RegExp(r'/$'), '') : command);