puput icon indicating copy to clipboard operation
puput copied to clipboard

Unable to relate entry between blogs

Open savvan0h opened this issue 4 years ago • 0 comments

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.

https://github.com/APSL/puput/blob/c991d895c9c0c1facd02a5faa653d0953d6c96aa/puput/urls.py#L81

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?

savvan0h avatar Nov 10 '21 14:11 savvan0h