day8 / re-frame

A ClojureScript framework for building user interfaces, leveraging React
http://day8.github.io/re-frame/
MIT License
5.42k stars 715 forks source link

[Bug]: CSS link path changing with URL #761

Closed gwenaelcholet closed 2 years ago

gwenaelcholet commented 2 years ago

What happened?

I have a trouble with the import of my CSS - which is made through the html link tag.

It works well when the url has got a single slash - like http://url/page. it correctly look for the css at http://url/styles/main.css

but when the URL comports two slashes like http://url/page/1 then the css is looked at: http://url/page/styles/main.css and so is not found cause path is incorrect.

I am using clojurescript react-js wrapper called re-frame.

How to tell the soft to always look at http://url/styles/main.css whatever the URL.

Version

1.2.0

What runtimes are you seeing the problem on?

Mozilla Firefox

Relevant console output

No response

gwenaelcholet commented 2 years ago

Not an issue sorry a wrong use of my part