Stream: helpdesk (published)

Topic: netlify redirects


view this post on Zulip Simon Christ (Jan 19 2023 at 13:41):

webfolks! anyone knows why I loose all css, when I set redirects with status 200?
E.g. : https://gh-pages--juliaplots.netlify.app/latest/ instead of https://gh-pages--juliaplots.netlify.app/dev/ ?

view this post on Zulip Simon Christ (Jan 19 2023 at 14:46):

Tagging @Fons van der Plas since we talked about netlify on tuesday

view this post on Zulip Fons van der Plas (Jan 19 2023 at 18:09):

It looks like only /dev/ is being redirected to /latest/, but subpaths are not, like https://gh-pages--juliaplots.netlify.app/latest/input_data/ or https://gh-pages--juliaplots.netlify.app/latest/assets/themes/documenter-dark.css.

Did you use a _redirects file or a netlify.toml file? In that case, you can use the splatting feature to also redirect all subpaths.

view this post on Zulip Fons van der Plas (Jan 19 2023 at 18:13):

Same with
https://gh-pages--juliaplots.netlify.app/v1.38/
vs
https://gh-pages--juliaplots.netlify.app/v1.38.2/

view this post on Zulip Fons van der Plas (Jan 19 2023 at 18:18):

Ah I see that Documenter.jl generates a symlink for each directory. It might be that those not be fully supported by netlify, and you have to generate a _redirects or netlify.toml file instead.

view this post on Zulip Fons van der Plas (Jan 19 2023 at 18:24):

https://github.com/JuliaPlots/PlotDocs.jl/pull/337


Last updated: Nov 22 2024 at 04:41 UTC