M
M
mishapsv2019-02-25 14:33:07
GitHub
mishapsv, 2019-02-25 14:33:07

How to set Github Pages image path?

I host the project on Github Pages on the gh-page branch (this is the second project and you can't follow the main path).
https://poslavsky.github.io/multiStepsForm/public/
Everything works, but for some reason the pictures have the path https://poslavsky.github.io/img/promo1.jpg
to the root, not to multiStepsForm. Therefore, they are not displayed.
Maybe you have come across and have ideas how to fix it easier?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Skorokhodov, 2019-02-25
@egor_sc

Replace absolute paths
on
or

background: #FF6E20 url(/multiStepsForm/public/img/promo1.jpg) no-repeat;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question