Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enter this on your index.html just before end <body> tag
<script type="text/javascript">
$(document).ready(function() {
var hash = window.location.hash.replace(/^[#\/]*/, '');
var request = hash.split('/', 2);
var type = request[0];
var term = request[1];
if (type === "search"){
$(".search-query").val(term);
$(".navbar-search").submit();
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.