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

url filter returns invalid attachment URLs in flow blocks when alternatives used #574

Open
eigengrau opened this issue Jul 14, 2018 · 2 comments

Comments

@eigengrau
Copy link
Contributor

When a flow block has a field referencing a page attachment…

[field.image]
source = record.attachments.images

… and when a non-primary alternative of a page is being generated, the expression {{ this.image | url }} inside the flow block template will yield a URL within the alternative prefix, which leads to a 404.

As a work-around, {{ this.image | url(alt='_primary') }} will lead to the desired URL.

@dwt
Copy link

dwt commented Jan 29, 2021

I'd like to add that on 3.2 I also see this happening in content markdown. I have markdown like this:

![](martin.jpg)

Which renders then renders the alternative prefix in the path to the image - which of course renders wrong.

My workaround was to write the absolute path of the image down in the translation - which is of course not pretty.

![](/about/martin.jpg)

I think that relative paths in markdown should still link to the correct image. Either because it is re-generated at the new location (perhaps as a sym- or hard-link) or because the link is fixed to point to the original file.

@dwt
Copy link

dwt commented Jan 29, 2021

Also See #313

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

2 participants