Skip to content
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

When branch name contains # its throwing 404 from UI on clicking NewPullRequest button. #25844

Conversation

puni9869
Copy link
Member

Fixes: #25830

Before
We use issue reference as branch name and when I pushed my branch, gitea suggested to create new pr, however "#" in the branch name breaks this feature !
image

image

After
image

Clicking on New Pull Request
image

… double encoding done in template and go template code.
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 12, 2023
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 12, 2023
@puni9869
Copy link
Member Author

This issue may be required some other way to fix it.
As per my observation on github.
image

See the url its only encoded once on clicking on Compare and pull request
image

I need some feedback on this approach.

@puni9869 puni9869 added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Jul 12, 2023
@puni9869
Copy link
Member Author

Duplicate, hence closing.

@puni9869 puni9869 closed this Jul 13, 2023
@puni9869 puni9869 deleted the punit/ISSUE-25830-fixing-404-branchname-with-hash branch July 13, 2023 01:08
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Oct 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New pull request from last pushed branch 404 error
2 participants