-
Notifications
You must be signed in to change notification settings - Fork 59.8k
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
homepage calculation gives bad URLs on Windows #316
Labels
engineering
Will involve Docs Engineering
Comments
github-actions
bot
added
the
triage
Do not begin working on this issue until triaged by the team
label
Oct 9, 2020
janiceilene
removed
the
triage
Do not begin working on this issue until triaged by the team
label
Oct 9, 2020
4 tasks
This was referenced Sep 2, 2021
This was referenced Nov 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the current behavior?
Three of the tests related to homepage calculation. The are all of the following flavor.
and here is a sample of the HTML being returned from
get
. As you can see, Windows path separators () are being used indicating thatpath.join
is likely involved. I've not isolated the particular code as yet.What changes are you suggesting?
Suggest we do an audit of all the places that inject URLs into content or headers and ensure they don't use
path.join
. In fact, we should make a helper (e.g.,safeJoin
) that does something like(...segments) => slash(path.join(segments))
and then use that everywhere that has anything to do with web results.cc @github/docs-engineering , @chiedo
The text was updated successfully, but these errors were encountered: