Elixirschool: 404 not found from google links

Created on 18 Jul 2017  路  4Comments  路  Source: elixirschool/elixirschool

This has happened a few times now and it's been getting annoying. Google is returning links like:

https://elixirschool.com/lessons/specifics/plug/

Which renders a text string saying "Not found" and that's it.

It appears that the correct link is (depending on your locale):

https://elixirschool.com/en/lessons/specifics/plug/

I think that the previous link should return do some auto-detection, ask you to choose the locale, or default to a locale.

bug

All 4 comments

Thank you for the report and sorry for the hassle @axelson!

@eksperimental it seems like the redirect plugin is not doing it's job 馃槹

I've bumped the Jekyll version to no avail. Still digging in. @nscyclone could you take a peek if you get a chance?

@doomspork We have a manual redirect set up from the index page to the en index. As was stated in the commentary from commit linked above it was made due to a Jekyll issue that seems to be fixed in the latest major release.
We also use the pretty permalink which means that the post links don't have the extension and are being redirected to index.html in the post's folder. I guess the 404 issue is caused because the generated redirect file is located not at https://elixirschool.com/lessons/specifics/plug/index.html as expected but at https://elixirschool.com/lessons/specifics/plug.html. So I guess we could just update all the gems and add a trailing slash to each redirect_from clause in English pages' front matters.

I am not 100% sure about this but don't yet have anything else to suggest. Please take a look at #1135.

Thanks again for bringing this to our attention @axelson 馃憤

Huge thanks to @nscyclone for finding the solution so quickly

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaytheking picture jaytheking  路  3Comments

eksperimental picture eksperimental  路  4Comments

eksperimental picture eksperimental  路  5Comments

doomspork picture doomspork  路  4Comments

ukchukx picture ukchukx  路  5Comments