trailing-slash-guide icon indicating copy to clipboard operation
trailing-slash-guide copied to clipboard

gh pages trailing slash

Open ezbeazy opened this issue 1 year ago • 2 comments

Is the gh-pages incorrect? Pages add a trailing slash to the root. Gh pages deploy to https://user.github.io/repo/ and https://user.github.io/repo redirects to https://user.github.io/repo/. Unless I'm not understanding the chart correctly.

ezbeazy avatar Aug 29 '24 02:08 ezbeazy

I think it's correct. It does redirect, but https://user.github.io/repo points to a folder, not a file. So /folder is the column to look at.

Screenshot 2024-12-14 at 09 37 14

patbl avatar Dec 14 '24 16:12 patbl

Yes, looks correct to me.

Note that in that case, it's not even really a "folder" but rather a "baseUrl" that gets applied as a pathname prefix to all the static deployment. It's possible that hosts have special rules for this. Most likely, they will always use a trailing slash in that case, even though they may not apply a trailing slash for folders.

slorber avatar Dec 16 '24 09:12 slorber