You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The canonical url of such doc should be with html extension as well (as it's the url they had before, and they want to keep it)
Question: it's not clear to me what the behavior should be, if Watchman wants to use this "install" page as docs homepage, yet ensure that the canonical url of the page is, as requested, https://facebook.github.io/watchman/docs/install.html.
It could be safer to have a duplicate index page, with the canonical url being the one requested by the user with the slug option?
We could redirect the /docs root to the canonical page
Or we could forbid the usage of a slug on the document root, considering that the canonical url is always /docs (sites like Watchman wouldn't be able to use document root)
@lex111 to handle the /docs/introduction -> /docs you asked me here, I think we should figure out the final behavior we want first.
The text was updated successfully, but these errors were encountered:
I actually don’t know which option is better. One of our users said that it is better to do without duplicating the page, or to set the canonical url, in the end I did the first one.
Hi,
This latest PR about docs homepage had some side-effects: #2861
Sites like Watchman have expressed the need to add
.html
extensions to their docs, this is why we created the slug frontmatterFor example, they want their first doc to be:
instead of:
The canonical url of such doc should be with html extension as well (as it's the url they had before, and they want to keep it)
Question: it's not clear to me what the behavior should be, if Watchman wants to use this "install" page as docs homepage, yet ensure that the canonical url of the page is, as requested,
https://facebook.github.io/watchman/docs/install.html
.It could be safer to have a duplicate index page, with the canonical url being the one requested by the user with the
slug
option?We could redirect the /docs root to the canonical page
Or we could forbid the usage of a slug on the document root, considering that the canonical url is always
/docs
(sites like Watchman wouldn't be able to use document root)@lex111 to handle the
/docs/introduction
->/docs
you asked me here, I think we should figure out the final behavior we want first.The text was updated successfully, but these errors were encountered: