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

Paths to assets #59

Closed
saminnet opened this issue Jan 7, 2020 · 2 comments
Closed

Paths to assets #59

saminnet opened this issue Jan 7, 2020 · 2 comments

Comments

@saminnet
Copy link

saminnet commented Jan 7, 2020

Is there a way to preserve the paths to assets like (png,svg,..) when opening a new window?

none of my <img> tags can resolve src filed.

@burnmaniac
Copy link

I have the same issue, but in my case, I work with SVGs.

The only possible solution I see is to use absolute paths, and not relative.

So, instead of using path like /assets/something.svg, we need to use something like http://foo.bar/assets/something.svg.

@gdenisov
Copy link

gdenisov commented Dec 7, 2022

An alternative approach is to keep the paths relative but set the base element in the page's header. See code sample here: #104 (comment)

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

3 participants