검색 범위가 좁은 검색 필터가있는 웹 페이지가 있습니다. 결과를 클릭하여 세부 정보 페이지로 이동할 수 있지만 브라우저의 '뒤로'버튼을 사용하여 검색 결과로 돌아 가면 필터가 모두 사라집니다. 필터 옵션을 "FORM"요소에 래핑하여 지속되도록하는 것은 나쁜 습관입니까?Ok 양식 요소를 사용하여 검색 필터를 유지 하시겠습니까?
전 :
<div class="sort-results classes">
<select id="select-classes" name="sort-classes">
<option selected="selected" value="">Sort by</option>
<option value="price-ascending" data-order="asc" data-sort="class-price">Price: Lowest</option>
<option value="price-descending" data-order="desc" data-sort="class-price">Price: Highest</option>
...
</select>
</div>
후 :
<div class="sort-results classes">
<form>
<select id="select-classes" name="sort-classes">
<option selected="selected" value="">Sort by</option>
<option value="price-ascending" data-order="asc" data-sort="class-price">Price: Lowest</option>
<option value="price-descending" data-order="desc" data-sort="class-price">Price: Highest</option>
...
</select>
</form>
</div>
URL에 필터 옵션을 제공하는 것이 일반적인 방법이라고 생각합니다. – rzymek