-
Notifications
You must be signed in to change notification settings - Fork 43
Missing type for the redirect inside renderingContent #217
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Version
@nuxtjs/algolia: 1.10.2
nuxt: 3.15.1
Steps to reproduce
- Try to access the
redirectproperty oflisting.renderingContent. - Get the type error that
redirectdoes not exist on type ofrenderingContent
What is Expected?
It's possible to define a redirect rule in Algolia. https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/#create-a-rule-with-the-api
If it's defined, the response will contain the redirect object inside renderingContent:
...
renderingContent: {
...
redirect: {
url: '/a/redirect/path/'
}
}
The type for redirect should be defined in renderingContent: https://github.com/nuxt-modules/algolia/blob/main/src/types.ts#L630
What is actually happening?
I get the type error when trying to use renderingContent.redirect.url
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working