@canopy-iiif/app 1.11.2 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/build/search.js +1 -1
- package/lib/build/sitemap.js +1 -1
- package/lib/search/search-form-runtime.js +1 -1
- package/lib/search/search.js +1 -4
- package/package.json +1 -1
- package/ui/dist/index.mjs +5 -5
- package/ui/dist/index.mjs.map +1 -1
- package/ui/dist/server.mjs +5 -5
- package/ui/dist/server.mjs.map +1 -1
package/ui/dist/server.mjs
CHANGED
|
@@ -2610,7 +2610,7 @@ function isAbsoluteUrl(href) {
|
|
|
2610
2610
|
}
|
|
2611
2611
|
function resolveSearchPath(pathValue) {
|
|
2612
2612
|
let raw = typeof pathValue === "string" ? pathValue.trim() : "";
|
|
2613
|
-
if (!raw) raw = "/search";
|
|
2613
|
+
if (!raw) raw = "/search/index.html";
|
|
2614
2614
|
if (isAbsoluteUrl(raw)) return raw;
|
|
2615
2615
|
const normalizedPath = raw.startsWith("/") ? raw : `/${raw}`;
|
|
2616
2616
|
const base = readBasePath2();
|
|
@@ -2629,7 +2629,7 @@ function SearchPanelForm(props = {}) {
|
|
|
2629
2629
|
placeholder,
|
|
2630
2630
|
buttonLabel,
|
|
2631
2631
|
label,
|
|
2632
|
-
searchPath = "/search",
|
|
2632
|
+
searchPath = "/search/index.html",
|
|
2633
2633
|
inputId: inputIdProp,
|
|
2634
2634
|
clearLabel
|
|
2635
2635
|
} = props || {};
|
|
@@ -2785,7 +2785,7 @@ function SearchPanel(props = {}) {
|
|
|
2785
2785
|
// eslint-disable-line no-unused-vars
|
|
2786
2786
|
buttonLabel: buttonLabelProp,
|
|
2787
2787
|
label,
|
|
2788
|
-
searchPath = "/search"
|
|
2788
|
+
searchPath = "/search/index.html"
|
|
2789
2789
|
} = props || {};
|
|
2790
2790
|
const { getString } = useLocale();
|
|
2791
2791
|
const placeholder = placeholderProp != null ? placeholderProp : getString("common.phrases.placeholder_search", "Search\u2026");
|
|
@@ -3614,7 +3614,7 @@ function CanopyHeader(props = {}) {
|
|
|
3614
3614
|
const defaultSearchRoute = siteDefaultRoutes && typeof siteDefaultRoutes.search === "string" ? siteDefaultRoutes.search : "search";
|
|
3615
3615
|
const trimmedSearchRoute = searchRouteValue ? searchRouteValue.replace(/^\/+|\/+$/g, "") : "";
|
|
3616
3616
|
const usesDirectorySearchRoute = trimmedSearchRoute && trimmedSearchRoute !== (defaultSearchRoute || "search");
|
|
3617
|
-
const normalizedSearchRoute = usesDirectorySearchRoute ? `/${trimmedSearchRoute}/` : `/${(trimmedSearchRoute || defaultSearchRoute || "search").replace(/^\/+/, "")}`;
|
|
3617
|
+
const normalizedSearchRoute = usesDirectorySearchRoute ? `/${trimmedSearchRoute}/` : `/${(trimmedSearchRoute || defaultSearchRoute || "search").replace(/^\/+/, "")}/index.html`;
|
|
3618
3618
|
const resolvedLanguageToggle = languageToggleProp === false ? null : languageToggleProp === true || typeof languageToggleProp === "undefined" ? siteLanguageToggle : languageToggleProp;
|
|
3619
3619
|
const resolvedSearchLabel = searchLabelProp != null ? searchLabelProp : getString("common.nouns.search", "Search");
|
|
3620
3620
|
const resolvedSearchPlaceholder = searchPlaceholderProp != null ? searchPlaceholderProp : getString("common.phrases.placeholder_search", "Search\u2026");
|
|
@@ -7098,7 +7098,7 @@ function MdxSearchFormModal(props = {}) {
|
|
|
7098
7098
|
// kept for backward compat; ignored by teaser form
|
|
7099
7099
|
buttonLabel: buttonLabelProp,
|
|
7100
7100
|
label,
|
|
7101
|
-
searchPath = "/search"
|
|
7101
|
+
searchPath = "/search/index.html"
|
|
7102
7102
|
} = props || {};
|
|
7103
7103
|
const { getString } = useLocale();
|
|
7104
7104
|
const placeholder = placeholderProp != null ? placeholderProp : getString("common.phrases.placeholder_search", "Search\u2026");
|