Make submodule link work with relative path - #35034
Conversation
|
Diff with ignoring spaces: https://github.com/go-gitea/gitea/pull/35034/files?w=1 |
|
Will this also fix the link in a PR where a submodule is changed? |
6e56355 to
ff266a7
Compare
I think yes, they use the same logic. |
|
https://demo.gitea.com/gnuman/rel_submodule_test/pulls/1/files This view is still broken. On my test instance with the patch, I see
|
Hmm, the relative path is working, but the problem is that the pull's page doesn't share the same path layout, so "../../" is relative to "https://demo.gitea.com/gnuman/rel_submodule_test/pulls/1". Not easy to fix .... |
|
I have some ideas to fix now, but the changes will be many, and won't be able to backport. So I think we can have this fix first, and then refactor the "submodule relative path" problem later. |
|
Agreed. The relative-path submodule diff is not really a regression from 1.23.x since it wasn't available back then. |
* giteaofficial/main: Fix updating user visibility (go-gitea#35036) Fix git commit committer parsing and add some tests (go-gitea#35007) Refactor OpenIDConnect to support SSH/FullName sync (go-gitea#34978) Support base64-encoded agit push options (go-gitea#35037) Also display "recently pushed branch" alert on PR view (go-gitea#35001) Make submodule link work with relative path (go-gitea#35034) Update to go 1.24.5 (go-gitea#35031) Improve CLI commands (go-gitea#34973) Tweak eslint config, fix new issues (go-gitea#35019) # Conflicts: # templates/repo/commits_list.tmpl

Fix #35033