-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(api.pug): change to redirect to mongoose API page #12223
Conversation
Merged latest master to resolve conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little concerned about this breaking existing links to the api page. Any anchor that links to a header that isn't in /api/mongoose
will break.
We'd like to make this change eventually, that's why we added api_split.pug
, but still wary of broken links. What do you think @hasezoey ?
like i said (in the PPS), with this current way, it would break all anchor links to the old page the other workaround would be to redirect via script, with anchors (which i did not do originally, because it potentially loads longer, or not at all when JS is disabled) |
@vkarpov15 should i change it to a js script that redirects to the correct page with anchor instead of a meta-refresh? |
i just noticed that because
|
c72d52e
to
93e1660
Compare
The only thing that still needs to be updated is |
added to the 6.7 milestone to be considered for merge, because i think this PR is ready and handles all (that i know of) cases |
We'll hold off on this one until 7.0, I'm still a little uncomfortable with merging this one due to SEO concerns. But should be fine to merge with 7.0 release. |
sure, would it be alright if some changes (like links to |
@hasezoey sure |
699346e
to
59ea306
Compare
59ea306
to
4ed2e36
Compare
force-push to rebase on latest master (clean-up the PR commits from the 6.8 branch) also changed the base to 7.0 as per the milestone and discussion previously |
including anchors
4ed2e36
to
b8d26c1
Compare
rebased onto latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
just asking to not forget it: |
Summary
This PR addresses #12217, with the approach of using a script to redirect based on the anchor
fixes #12217
Note: This description was changed later, so the earlier comments might reference older information