Skip to content
Discussion options

You must be logged in to vote

So, in the end your image is hosted at: https://labriunesp.org/img/projetos/extensao/pod-ri/logo-site.png

Your code says: imageUrl: './img/projetos/extensao/pod-ri/logo-site.png',

  • it uses useBaseUrl which does not really make sense for relative paths (we never want to add baseurl because they are relative anyway... it only make sense to eventually add the baseurl "/" prefix to absolute paths starting with /

In the end you end up with a bad path in the DOM

Indeed this does not work: https://labriunesp.org//./img/projetos/extensao/pod-ri/logo-site.png

But this works: https://labriunesp.org/./img/projetos/extensao/pod-ri/logo-site.png

So, just remove the useBaseUrl call to avoid adding un…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rafaelrdealmeida
Comment options

Answer selected by rafaelrdealmeida
Comment options

You must be logged in to vote
1 reply
@slorber
Comment options

slorber Jun 24, 2021
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants