|
|
|
|
@ -46,7 +46,7 @@
|
|
|
|
|
display_item(normalized_name);
|
|
|
|
|
console.log("replaceState: " + normalized_name);
|
|
|
|
|
window.history.replaceState({ "item_name": normalized_name }, "",
|
|
|
|
|
"/recommends.html?item="
|
|
|
|
|
"recommends.html?item="
|
|
|
|
|
+ encoded_name );
|
|
|
|
|
}
|
|
|
|
|
$(window).on("popstate", function(e) {
|
|
|
|
|
@ -72,7 +72,7 @@
|
|
|
|
|
display_item(normalized_name);
|
|
|
|
|
console.log("pushState: " + normalized_name);
|
|
|
|
|
window.history.pushState({ "item_name": normalized_name }, "",
|
|
|
|
|
"/recommends.html?item=" + encoded_name );
|
|
|
|
|
"recommends.html?item=" + encoded_name );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function display_item(normalized_name) {
|
|
|
|
|
|