Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search not working when public pages are hosted via IPFS #333

Closed
DealerJohn opened this issue Apr 19, 2021 · 8 comments
Closed

search not working when public pages are hosted via IPFS #333

DealerJohn opened this issue Apr 19, 2021 · 8 comments

Comments

@DealerJohn
Copy link

Alex,
When I use the local server, search is working perfect. When I move the public pages to IPFS and use that site then search does do nothing.
John

@alex-shpak
Copy link
Owner

Hi!
Well, I would guess that site path that was used to generate site is not same as during browsing.
Do you have hosted IPFS site publicly so that I can take a look?

@DealerJohn
Copy link
Author

DealerJohn commented May 4, 2021 via email

@alex-shpak
Copy link
Owner

As far as I can see it tries to load https://gateway.pinata.cloud/flexsearch.min.js, when it should be loading https://gateway.pinata.cloud/ipfs/QmdRu9SWq2vqELBD39BNLggjMxbXZ4KRchVF91hbyd2KhM/flexsearch.min.js

what --baseURL= you use when generating static files?

@DealerJohn
Copy link
Author

DealerJohn commented May 4, 2021 via email

@alex-shpak
Copy link
Owner

Well, without knowing path is not possible to generate links for resources.
I see you changed links in menu to use relative links, but as scrips are generated once you can't do same for search.

Will work when you have your domain.

@DealerJohn
Copy link
Author

DealerJohn commented May 4, 2021 via email

@DealerJohn
Copy link
Author

DealerJohn commented May 4, 2021 via email

@alex-shpak
Copy link
Owner

No, such feature is not in place at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants