pagefind icon indicating copy to clipboard operation
pagefind copied to clipboard

How to use pagefind for a non-static website

Open mattiasJohnson opened this issue 6 months ago • 1 comments

I would like to include pagefind for an older website which is not static but is using ASP.NET MVC. During the build process of the website I would have no problem generating a folder structure which would be like a static version of the website to use for the indexing. The problem would be to ensure that the links in the search results lead to the actual pages and not to these static files (which I would prefer not to even have to host, just use during build process).

Could someone give some pointers on what I would need to change to have the search results lead to the correct page? (they would of course have the same naming structure so a search result for a static file /documentation/apishould lead to mywebsite.com/documentation/api)

mattiasJohnson avatar Aug 27 '24 12:08 mattiasJohnson