-
Notifications
You must be signed in to change notification settings - Fork 17
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
Video links href and text content do not match #211
Comments
sure. |
so given a link
a) we could either adjust the content accordingly, which would be the simplest:
b) make it absolute with the host and path:
I think that a) is better, as it has less potential to cause problems with caching. @davidnuescheler WDYT? |
In JS:
I prefer b) because it is more aligned with what the author has pasted in Word. |
actually, I was wrong. we don't rewrite the prod host, so b) would be:
which is also not great. I think a) (maybe w/o the |
To upload a video, an author chats with the franklin bot and gets a link like https://main--express-website--adobe.hlx.page/media_1f4b5e29362b67df45103c598e4b15e7777159e31.mp4.
When rendered, the link becomes:
<a href="./media_1f4b5e29362b67df45103c598e4b15e7777159e31.mp4">https://main--express-website--adobe.hlx.page/media_1f4b5e29362b67df45103c598e4b15e7777159e31.mp4</a>
which is technically a correct transformation only on pages at the root: as soon as the link appears on a page in a folder, the mapping href / a.textContent is not correct.We used to use that mapping for certain detections and this logic became invalid with the v7 pipeline.
We know it is the same asset, just the urls do not match. Not a "big" deal neither, maybe we can have a better solution.
I do not think
<a href="./media_1f4b5e29362b67df45103c598e4b15e7777159e31.mp4">./media_1f4b5e29362b67df45103c598e4b15e7777159e31.mp4</a>
is nice neither.Is it possible to have the correct absolute URL ?
The text was updated successfully, but these errors were encountered: