Skip to content

Accessing resources from library modules #593

Answered by bitspittle
NikSatyr asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you!

(Quick tip: before sharing a source zip, run ./gradlew clean as that will remove a lot of build files resulting in a much smaller final download size)

To fix your issue, the path in SharedHeader.kt should be "/images/kobweb-logo.png" with a leading slash. Otherwise, your site is trying to find a file at "subfolder/images/kobweb-logo.png"

If (on Chrome at least) you inspect your page with dev tools, go to the Network tab, and refresh the page, you can see this as well:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bitspittle
Comment options

@NikSatyr
Comment options

Answer selected by NikSatyr
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