Fix URL
This commit is contained in:
parent
8925fb87a9
commit
c2cb1f861d
|
@ -21,7 +21,7 @@ $(document).ready(() => {
|
||||||
appendTo: '#search-form',
|
appendTo: '#search-form',
|
||||||
source: (request, response) => {
|
source: (request, response) => {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/langs/polish/words?like=' + request.term + '&limit=20&offset=0',
|
url: '/langs/pl/words?like=' + request.term + '&limit=20&offset=0',
|
||||||
success: data => response(data)
|
success: data => response(data)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -44,7 +44,7 @@ $(document).ready(() => {
|
||||||
let word = window.location.hash.replace('#', '');
|
let word = window.location.hash.replace('#', '');
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/langs/polish/words/' + word,
|
url: '/langs/pl/words/' + word,
|
||||||
|
|
||||||
success: (data) => {
|
success: (data) => {
|
||||||
$('#ajax-content').html(generateHtml(word, data))
|
$('#ajax-content').html(generateHtml(word, data))
|
||||||
|
|
Loading…
Reference in New Issue