I've seen this issue happen when there is a client-side redirect configured somehow
Jason Bosco
10/10/2023, 4:05 PM
May be try enabling JS rendering to see if that fixes the issue?
a
Abdulrahman Alosaimi
10/11/2023, 8:07 AM
Yeah the way we have structured the Docusaurus website is there is no /docs path, the documentation is placed directly at the base url so that could be the issue. I have tried enabling JS rendering on the TypeSense config file but to no avail. How could I solve this issue? Currently I had to write a script to get all the urls from the sitemap and attach it to the config json file, this is obviously not ideal. I appreciate the help.
j
Jason Bosco
10/11/2023, 2:33 PM
Could you do a curl to the root path and inspect the html returned? That could give you clues into what the scraper processes... and if there are no links in that document, then that's the source of the issue
a
Abdulrahman Alosaimi
10/16/2023, 11:56 AM
Apologies for the delayed response, I sent a GET request using Postman to the root path of the website and got the content with the links in the following format "/foo/bar/", I don't know if that gives any clues, I also sent a GET request to the sitemap and it retrieved it with the full links to all the pages. So I still do not know what would cause this issue, any idea?
Abdulrahman Alosaimi
11/20/2023, 8:45 AM
Can someone give me some clues on how to get sitemap to work correctly without needing to add all site urls to the site_urls array?