10-05-2021, 09:31 PM
Hi Again,
I revisited my latest problem and it was kind of really dumb but I just did not understand how vue would act on img-src-attributes.
Here is the recap on trying to show an image that is provided from tactic as an asset:
- fail: <img src="localhost/assets/salespitch/blogpost/New Ideas_v001_web.jpg"/>
- success: <img src="https://localhost/assets/salespitch/blogpost/New Ideas_v001_web.jpg"/>
The first img will fail as vue prefixes path components, as for static resources provided by vue itself. Obviously that is not what I am trying to achieve.
The second is fine, as vue treats "http(s)://"-URIs as external resources.
There is a lot more detail on stuff like this from the vue perspective, so I will add the links I stumbled upon here:
- https://stackoverflow.com/questions/3764...s-template
- https://stackoverflow.com/questions/5063...al-website
- https://github.com/vuejs/vue-router/issues/1280
- https://next.router.vuejs.org/guide/adva...-link.html
- https://stackoverflow.com/questions/4459...ation-href
Hopefully I'll never need to understand all the stuff mentioned in these links.
From here I will try to find answers for the following questions:
Q1) How do I grab the URI for accessing an asset using the API?
Q2) How can I reference to the most current version of an asset?
BR --t
I revisited my latest problem and it was kind of really dumb but I just did not understand how vue would act on img-src-attributes.
Here is the recap on trying to show an image that is provided from tactic as an asset:
- fail: <img src="localhost/assets/salespitch/blogpost/New Ideas_v001_web.jpg"/>
- success: <img src="https://localhost/assets/salespitch/blogpost/New Ideas_v001_web.jpg"/>
The first img will fail as vue prefixes path components, as for static resources provided by vue itself. Obviously that is not what I am trying to achieve.
The second is fine, as vue treats "http(s)://"-URIs as external resources.
There is a lot more detail on stuff like this from the vue perspective, so I will add the links I stumbled upon here:
- https://stackoverflow.com/questions/3764...s-template
- https://stackoverflow.com/questions/5063...al-website
- https://github.com/vuejs/vue-router/issues/1280
- https://next.router.vuejs.org/guide/adva...-link.html
- https://stackoverflow.com/questions/4459...ation-href
Hopefully I'll never need to understand all the stuff mentioned in these links.
From here I will try to find answers for the following questions:
Q1) How do I grab the URI for accessing an asset using the API?
Q2) How can I reference to the most current version of an asset?
BR --t