-
Notifications
You must be signed in to change notification settings - Fork 866
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
"Improve this Doc" URL goes back to a 404 when canceling out #3156
Comments
This may very well be a bug on GitHub's side, but I wanted to start here in case we think there's something we can do with the URL to make it work the way a user might expect it to. |
@airbreather , I did not see a "Cancel" link on the page with the "Improve this Doc" link: Could you provide more information? |
Ahh -- it appears that I only immediately see "Cancel" when logged in as someone with push access to the repo! The equivalent page shows up when you click "Fork this repository and propose changes", and the same thing happens when I click "Cancel" there... tested on some random page for docfx: Specifically, that was FileMappingItem --> Improve this Doc, which should (for someone with push access to dotnet/docfx) give what I saw on mine, which should (I think) punt you back to this, which 404s. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Thank you, friendly bot, for doing your part to help keep repositories clean. This still appears to be an issue in the latest stable release (2.40.11). |
This should be a repo config issue. When you click To resolve this, you shall ensure the directory |
That doesn't seem to be enough, unfortunately. I do have a It looks like the problem is that the links on pages such as this one use the following format:
Which cancels back to:
When exploring around, I noticed that I can change
Then the "cancel" link puts me to the dummy file I created in my "overwrite" folder:
I think this is probably a GitHub bug. Removing all the query parameters and the final "/new" gives me a link like this, which works exactly as I expect it to work (of course, without the special name and contents that docfx require in order for it to do what we're trying to do):
As soon as I add the "filename" query parameter, it seems to go up a level. I was able to manually come up with a URL that does work the way I wanted it to, however: changing
Brings me to a page that works exactly as I expect it to. |
@airbreather Thank you for the experiments!
My investigation stuck here before. So I added the final You can try customizing template to make it work. Welcome to contribute back 😄 Related code:
|
Yeah. I just played around with it a little bit more, and if I click cancel and then use the Back button on my browser (Firefox 65), GitHub starts ignoring that part of the |
I've opened isaacs/github#1527, and I'll be e-mailing GitHub support with a link to this issue shortly. Follow that issue for any updates on that side of things. |
Not sure when this was updated, but the "Cancel" button now returns me back to the repository's home page, which I think is good enough. |
DocFX Version Used: docfx.console 2.37.2
Template used:
default
Steps to Reproduce:
Expected Behavior:
You should be punted back to the overwrite directory that the file would have been created in, same as if you got to the "Create new file" page by clicking the button while browsing the overwrite directory on GitHub.
Actual Behavior:
It punts you back to a 404 page.
Live Sample:
https://nettopologysuite.github.io/NetTopologySuite.IO.GPX/api/NetTopologySuite.IO.GpxBoundingBox.html
The text was updated successfully, but these errors were encountered: