gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

Some chapters redirect to a 404 error

Open hgducharme opened this issue 11 years ago • 7 comments

As of just recently, a few of my book's chapters when clicked on redirect to a 404 page. Everything has been fine and all of a sudden this started happening.

I have my gitbook integrated with github if that is relevant in any way.

hgducharme avatar Feb 09 '15 17:02 hgducharme

What is your gitbook url ?

SamyPesse avatar Feb 09 '15 17:02 SamyPesse

It looks like the problem is not coming from gitbook, for example:

The first entry in the summary (https://github.com/hgducharme/SQL-Basics/blob/master/SUMMARY.md) is pointing to a file that doesn't exist:

* [Basic Syntax](select_statements/README.md)

Even in GitHub, the link are giving a 404: https://github.com/hgducharme/SQL-Basics/blob/master/select_statements/README.md

Let me know if I don't understand correctly the issue (with an exemple or chapter that exists but is giving a 404).

SamyPesse avatar Feb 09 '15 18:02 SamyPesse

Thank you, I should have picked up on this earlier.

hgducharme avatar Feb 09 '15 18:02 hgducharme

I'm pretty sure I fixed the problem, however it appears to still be redirecting to a 404.

I went into the online edit page for my book and made sure the path for each chapter linked to the correct .md file. I also did the same for all the links in the SUMMARY.md. I then did a git push to my gitbook account and updated the build. Is there anything i'm missing? The links still direct to the old path (i.e. the path to the files that don't exist.)

hgducharme avatar Feb 10 '15 00:02 hgducharme

Yes it looks like the problem is coming from the & in the url: http://hgducharme.gitbooks.io/sql-basics/content/table_variabes_&_set_operators/README.html

I'll add an issue on GitBook.com to support this.

In the mid time, if you want your book to work, you can replace & by and.

SamyPesse avatar Feb 10 '15 09:02 SamyPesse

I want to note that I have two chapters with the & operator in the name, and only the table_variables_&_set_operators chapter links to a 404.

As opposed to the chapter subqueries_in_the_from_&_select_clause which correctly links to the right file path.

hgducharme avatar Feb 10 '15 14:02 hgducharme