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 record.link() and record.canonical() functions #937

Closed
I-Valchev opened this issue Jan 28, 2020 · 2 comments
Closed

Add record.link() and record.canonical() functions #937

I-Valchev opened this issue Jan 28, 2020 · 2 comments

Comments

@I-Valchev
Copy link
Member

I-Valchev commented Jan 28, 2020

No description provided.

@bobdenotter
Copy link
Member

bobdenotter commented Jan 28, 2020

We shouldn't do this. The old link in v3 was confusing. When a contenttype had a field named link, the results of {{ record.link }} were confusing. In v4, this is made explicit by using the |link "magic attribute".

{{ record|link() }} -> absolute link
{{ record|link(true) }} -> canonical URL

I'm not closing this yet, until we're sure it's documented as such. :-)

@bobdenotter
Copy link
Member

bobdenotter commented Feb 7, 2020

Fixed by bolt/docs#1002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants