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

Unable to relate entry between blogs #254

Open
hiroki-sawano opened this issue Nov 10, 2021 · 0 comments
Open

Unable to relate entry between blogs #254

hiroki-sawano opened this issue Nov 10, 2021 · 0 comments

Comments

@hiroki-sawano
Copy link
Contributor

It's possible to relate an entry between blogs, but the entry url in puput/related_entries.html cannot be rendered correctly.
I think it's because puput.urls.get_entry_url resolves the blog path from blog_page .
If I replace blog_page.specific below with entry.blog_page , it seems to work fine.

blog_path = strip_prefix_and_ending_slash(blog_page.specific.last_url_part)

In case that Blog pages have Root page as parent, the hostname doesn't change according to a related entry so won't work too.

Am I right?

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

1 participant