Stop sending clicks to the #results anchor
- Id
- 412f205b6847af74ab73735609fc9d84c5649c4b
- Author
- Caio
- Commit time
- 2019-05-21T13:13:15+02:00
Modified src/main/java/co/caio/tablier/view/Search.rocker.html
<p>Nothing to show here :(</p>
} else {
<nav class="pagination mt-150" role="navigation">
- <a class="pagination-previous" @if (site.isUnstable() || sr.previousPageHref().isEmpty()) { disabled } else { href="@sr.previousPageHref()#results" }>Previous page</a>
- <a class="pagination-next" @if (site.isUnstable() || sr.nextPageHref().isEmpty()) { disabled } else { href="@sr.nextPageHref()#results" }>Next page</a>
+ <a class="pagination-previous" @if (site.isUnstable() || sr.previousPageHref().isEmpty()) { disabled } else { href="@sr.previousPageHref()" }>Previous page</a>
+ <a class="pagination-next" @if (site.isUnstable() || sr.nextPageHref().isEmpty()) { disabled } else { href="@sr.nextPageHref()" }>Next page</a>
<ul class="pagination-list"></ul>
</nav>
}
Modified src/main/java/co/caio/tablier/view/searchform.rocker.html
<h2 class="subtitle">
Over a million recipes, zero ads.
</h2>
-<form action="/search?#results" method="get">
+<form action="/search" method="get">
<div class="field has-addons has-addons-centered">
<div class="control">
<input class="input" @if (site.isUnstable()) { disabled } type="search" name="q" @if (site.searchIsAutoFocus()) { autofocus } placeholder="Ingredients, diets, etc." value="@site.searchValue()">
Modified src/main/java/co/caio/tablier/view/sidebar.rocker.html
@for (option : filter.options()) {
<li>
@if (filter.isRemovable() && option.isActive()) {
- <a class="is-active" href="@option.href()#results">@option.name() <button class="delete is-pulled-right"></button></a>
+ <a class="is-active" href="@option.href()">@option.name() <button class="delete is-pulled-right"></button></a>
} else if (option.isActive()) {
<a class="is-active">@option.name()</a>
} else if (filter.showCounts() && option.count() == 0) {
<a disabled>@option.name()</a>
} else {
- <a href="@option.href()#results">@option.name() @if (filter.showCounts()) { <span class="menu-item-count">@option.count()<span> }</a>
+ <a href="@option.href()">@option.name() @if (filter.showCounts()) { <span class="menu-item-count">@option.count()<span> }</a>
}
</li>
}