You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the book/book.html template, is there a way to get/construct the canonical URL for a book? (Is it stored on book somewhere I can't find?)
i.e. if I'm on the book page OR if I'm editing, it's using the same template but the URLs are different.
So I'd like to get the One True URL that points to the book page.
This is for OpenGraph - if a link to a book page is copy-pasted, it should always point back to the "main" book page. I think I'll need the same idea for other things - e.g. lists - as well.
(If that doesn't make sense let me know and I can try to clarify with an example when the site is back up.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the
book/book.html
template, is there a way to get/construct the canonical URL for a book? (Is it stored onbook
somewhere I can't find?)i.e. if I'm on the book page OR if I'm editing, it's using the same template but the URLs are different.
So I'd like to get the One True URL that points to the book page.
This is for OpenGraph - if a link to a book page is copy-pasted, it should always point back to the "main" book page. I think I'll need the same idea for other things - e.g. lists - as well.
(If that doesn't make sense let me know and I can try to clarify with an example when the site is back up.)
Beta Was this translation helpful? Give feedback.
All reactions