mirror of https://github.com/jpanther/congo.git
🔀 Merge pull request #224 from eliaserland:dev
Fixes #223 - Ensure trailing forward slash in `baseURL` for site searchpull/231/head
commit
edd8ab5bcb
|
@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- Search not working when `baseURL` does not end with a forward slash ([#224](https://github.com/jpanther/congo/pull/224))
|
||||
|
||||
## [2.2.2] - 2022-06-16
|
||||
|
||||
### Added
|
||||
|
|
|
@ -107,6 +107,7 @@ function fetchJSON(path, callback) {
|
|||
|
||||
function buildIndex() {
|
||||
var baseURL = wrapper.getAttribute("data-url");
|
||||
baseURL = baseURL.replace(/\/?$/, '/');
|
||||
fetchJSON(baseURL + "index.json", function (data) {
|
||||
var options = {
|
||||
shouldSort: true,
|
||||
|
|
Loading…
Reference in New Issue