Skip to content

Commit

Permalink
Fixed URI hash getting unintentionally removed (fixes #15)
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Feb 2, 2018
1 parent ce94f87 commit 27c93e6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.2.2
## XX/XX/2018

1. [](#bugfix)
* Fixed URI `hash` getting unintentionally removed by tntsearch [#15](https:/trilbymedia/grav-plugin-tntsearch/pull/15)

# v1.2.1
## 01/16/2018

Expand Down
1 change: 1 addition & 0 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ domready(() => {
const uri = new URI(global.location.href, true);
history.replace({
search: global.location.search,
hash: global.location.hash,
state: {
historyValue: uri.query.q || '',
type: 'tntsearch',
Expand Down
2 changes: 1 addition & 1 deletion assets/tntsearch.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions tntsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ min: 3
snippet: 300
index_page_by_default: true
filter:
# items:
# taxonomy@:
# category: [news]
powered_by: true
items:
taxonomy@:
category: [news]
powered_by: true

0 comments on commit 27c93e6

Please sign in to comment.