「飲食店検索」の版間の差分
提供: 川西図鑑
その他の操作
編集の要約なし |
編集の要約なし |
||
| 11行目: | 11行目: | ||
const searchVal = urlParams.get('検索'); | const searchVal = urlParams.get('検索'); | ||
if(searchVal) { | if(searchVal) { | ||
const decoded = decodeURIComponent(searchVal); | const decoded = decodeURIComponent(searchVal); | ||
document.querySelector('input[name="検索"]').value = decoded; | document.querySelector('input[name="検索"]').value = decoded; | ||
// ページをリロードして URL を正しい文字列に置換 | |||
const newUrl = window.location.pathname + '?検索=' + encodeURIComponent(decoded); | |||
if (window.location.href !== newUrl) window.location.href = newUrl; | |||
} | } | ||
</script> | </script> | ||
2025年10月27日 (月) 11:33時点における版
店舗検索
エラー: テーブル店舗情報が見つかりません。