Use keyword in query string.

pull/8037/head
maliming 5 years ago
parent b13a2a3286
commit a4ac404691

@ -61,7 +61,7 @@ namespace Volo.Docs
options.Conventions.AddPageRoute("/Documents/Project/Index", routePrefix + "{projectName}");
options.Conventions.AddPageRoute("/Documents/Project/Index", routePrefix + "{languageCode}/{projectName}");
options.Conventions.AddPageRoute("/Documents/Project/Index", routePrefix + "{languageCode}/{projectName}/{version}/{*documentName}");
options.Conventions.AddPageRoute("/Documents/Search", routePrefix + "search/{languageCode}/{projectName}/{version}/{*keyword}");
options.Conventions.AddPageRoute("/Documents/Search", routePrefix + "search/{languageCode}/{projectName}/{version}");
});
context.Services.AddAutoMapperObjectMapper<DocsWebModule>();

@ -83,7 +83,7 @@
$('#fullsearch').keyup(function (e) {
if (e.key === 'Enter') {
window.open($(this).data('fullsearch-url') + this.value);
window.open($(this).data('fullsearch-url') + "?keyword=" + encodeURIComponent(this.value));
}
});
};

Loading…
Cancel
Save