fix url replacing in algolia search
This commit is contained in:
parent
05db54a741
commit
6c742593db
@ -73,10 +73,10 @@ const config = {
|
|||||||
//externalUrlRegex: 'external\\.com|domain\\.com',
|
//externalUrlRegex: 'external\\.com|domain\\.com',
|
||||||
|
|
||||||
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
|
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
|
||||||
replaceSearchResultPathname: {
|
//replaceSearchResultPathname: {
|
||||||
from: '/docs/', // or as RegExp: /\/docs\//
|
// from: '/docs/', // or as RegExp: /\/docs\//
|
||||||
to: '/',
|
// to: '/',
|
||||||
},
|
//},
|
||||||
|
|
||||||
// Optional: Algolia search parameters
|
// Optional: Algolia search parameters
|
||||||
searchParameters: {},
|
searchParameters: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user