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

localsearch links are relative to domain root #140

Closed
tritium21 opened this issue Feb 27, 2016 · 1 comment
Closed

localsearch links are relative to domain root #140

tritium21 opened this issue Feb 27, 2016 · 1 comment

Comments

@tritium21
Copy link

if your SITE_URL is, for example "http://some.domain/~someuser/", and you have a post at "http://some.domain/~someuser/posts/mypost.html", localsearch will record the location of the post as "/posts/mypost.html", not the correct "/~someuser/posts/mypost.html" (or the full URL, for that matter).

Simple fix, on line 84 of localsearch/__init__.py, just add the keyword argument absolute=True to the call to the permalink method.

@Kwpolska
Copy link
Member

I’m just going to apply that fix and hope it works. Thanks!

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