Genie Discord forum
![Author Avatar](https://cdn.discordapp.com/avatars/340614394302169098/6cd1d4597124f232e695536b0a8d4bc8.png?size=512)
I have a html page named product.jl.html. there i append various resources.
<link rel="stylesheet" href="fonts/fonts.css" />
<link rel="stylesheet" href="styles/global.css" />
<link rel="icon" href="svg/favicon.ico" sizes="any" />
<link rel="icon" href="svg/favicon.svg" type="image/svg+xml" />
<link rel="stylesheet" href="styles/variables.css" />
<link rel="stylesheet" href="styles/header.css" />
<link rel="stylesheet" href="styles/product__style.css" />
And i have a route for this page:
route("/products/:id") do
product_id = parse(Int64,string(payload(:id)))
product_result = Products.get_product(product_id)
@info product_result
page = open(io->read(io, String),"./public/product.jl.html")
Html.html(page)
end
For some reason Genie tries to add /products/ to every resource loading instance. For example: When i'm loading <link rel="stylesheet" href="fonts/fonts.css" />
genie tries to load
┌ Error: 2023-11-25 02:39:34 GET /products/fonts/fonts.css 404
. Genie clearly adds my route to my css path. Can i disable that somehow?
![Author Avatar](https://cdn.discordapp.com/avatars/743412727464067154/bc30abeb49653e9978c0f7c90f4486a8.png?size=512)
This happens because by not starting with / you're using relative paths. Try having /styles/header instead of styles/header
https://learn.genieframework.com/docs/guides/adding-dynamic-pages#including-static-assets
![Author Avatar](https://cdn.discordapp.com/avatars/340614394302169098/6cd1d4597124f232e695536b0a8d4bc8.png?size=512)
Thank you very much ! I noticed that you answer quite a lot of questions there, i want to thank you for that also, i'm pretty sure i am using Genie for every one of my new projects.