Www.julialang.org: URLs to blog articles changed

Created on 12 Jan 2020  路  14Comments  路  Source: JuliaLang/www.julialang.org

After the switchover, all (most?) links to the blog articles are 404ing.

Some examples:
https://julialang.org/blog/2019/12/yao-differentiable-quantum-programming => https://julialang.org/blog/2019/12/yao.jl-differentiable-quantum-programming-in-julia/
https://julialang.org/blog/2019/11/artifacts => https://julialang.org/blog/2019/11/reliable-and-reproducible-binary-artifacts-for-julia-packages/
https://julialang.org/blog/2019/07/multithreading => https://julialang.org/blog/2019/07/announcing-composable-multi-threaded-parallelism-in-julia/

Looks like the old slugs were handwritten, the new ones just generated from the title.

urgent

Most helpful comment

Thanks @benelsen

All 14 comments

Yes, in the old blog, the blog URLs were based on the filename submitted for the blog. Now they are autogenerated from the text.

@abhishalya Can we use the filename for the URL like the old jekyll site?

You are referencing external URL's correct? Accessing the blog posts from the site itself seems to work

Yes. The website is internally consistent. Because the way the blog URLs are being generated, old links will fail. So we need to do it consistently with what our jekyll site was doing, or add redirects for the old blogs.

I think the preferred way would be to use the old urls.

permalinks:
  blog: "blog/:year/:month/:slug"

in the config and

slug: old-slug

in the articles should work: https://gohugo.io/content-management/urls/#permalink-configuration-values

Could you submit a PR? I am not fully familiar with hugo, but you should be able to see the results in the CI.

On it, should take 15-30 minutes

Merged, let's see if this reverts those changes.

Someone might need to go though all of them with an archived version of the site to make sure all of them work.

Some of the links still don't work like the one above ^

I tried a few and they seem all ok, maybe there are still some caches not refreshed yet.

All seem to be working for me now.

Fixed by #565

Thanks @benelsen

Was this page helpful?
0 / 5 - 0 ratings

Related issues

essenciary picture essenciary  路  8Comments

ExpandingMan picture ExpandingMan  路  7Comments

logankilpatrick picture logankilpatrick  路  4Comments

amellnik picture amellnik  路  8Comments

tlienart picture tlienart  路  9Comments