silexlabs / Silex

Silex live web creation, free/libre no-code website builder, next gen Webflow for the static web
http://www.silex.me
GNU Affero General Public License v3.0
2.2k stars 580 forks source link

I found a bug: Incorrect File Linking #1529

Closed GetLikha closed 12 months ago

GetLikha commented 1 year ago

Salut, @lexoyo!

I successfully exported my file using ZIP, but then I encountered some errors when I opened the file. image This is how the page looked like, it's not styled. I looked further into it and I noticed something. image It isn't linked properly. Using /css/index.css links it to a folder called css in the root of the drive. Using css/index.css works just fine. image Then now I'm encountering a new problem, it isn't styled correctly. image That is how it's supposed to be styled.

lexoyo commented 1 year ago

Ok Did you try to put it online somewhere ? I am not sure it can be seen judt by clicking on it What files are missing in the browser network console?

GetLikha commented 1 year ago

I haven't put it online yet, but it still shouldn't be that way shouldn't it? And pardon me but, what do you mean by the browser network console? What info do I provide from there?

lexoyo commented 1 year ago

What was the url of your page when you opened it?

It should be something with localhost

lexoyo commented 1 year ago

Or maybe I should write relative paths in the html (./css/style.css)

GetLikha commented 1 year ago

Or maybe I should write relative paths in the html (./css/style.css)

Yeah just using relative paths is the recommended path, especially when there's different folders.

So relative path should work

lexoyo commented 12 months ago

Hello @GetLikha This bug is fixed with this commit: https://github.com/silexlabs/editor.silex.me/commit/b7af66b5d392b83ba7d48b64b9c297afe363e3e0 Can you confirm it is fixed when you have a moment please?

GetLikha commented 12 months ago

Yep it works in v117!

lexoyo commented 12 months ago

Cool !