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

Add url_path attribute to page serializer #55

Merged
merged 1 commit into from
Oct 25, 2021
Merged

Add url_path attribute to page serializer #55

merged 1 commit into from
Oct 25, 2021

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Oct 25, 2021

The url_path is used as the actual link to a page. It contains everything that is necessary to have a canonical link to a page without any redirects, while the urlname is just the nested friendly page name without leading or trailing slashes or locales or mount points, etc.

TL;DR this attribute is important and should be used for linking to a page.

@tvdeyen tvdeyen requested a review from mamhoff October 25, 2021 12:18
@tvdeyen tvdeyen merged commit a653f7b into main Oct 25, 2021
@tvdeyen tvdeyen deleted the add-url_path branch October 25, 2021 12:33
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

Successfully merging this pull request may close these issues.

2 participants