Skip to content

fix(file-tree): handle submodule links and missing view container - #38033

Merged
wxiaoguang merged 3 commits into
go-gitea:mainfrom
yszl666:main
Jul 23, 2026
Merged

fix(file-tree): handle submodule links and missing view container#38033
wxiaoguang merged 3 commits into
go-gitea:mainfrom
yszl666:main

Conversation

@yszl666

@yszl666 yszl666 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Prevent tree view navigation from intercepting submodule entries so the browser can follow external repository links normally.

Also guard against a missing .repo-view-content container before updating partial page content to avoid runtime errors.

Prevent tree view navigation from intercepting submodule entries so the
browser can follow external repository links normally.

Also guard against a missing `.repo-view-content` container before
updating partial page content to avoid runtime errors.
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 8, 2026
const response = await GET(u.href);
const elViewContent = document.querySelector('.repo-view-content')!;
const elViewContent = document.querySelector('.repo-view-content');
if (!elViewContent) return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It must exist, otherwise the related bug should be fixed.

So please use the old approach.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why some people just open a PR and leave it there forever.

@go-gitea go-gitea deleted a comment from romijaraw Jun 9, 2026
@go-gitea go-gitea deleted a comment from romijaraw Jun 9, 2026
@go-gitea go-gitea deleted a comment from romijaraw Jun 9, 2026
Comment thread web_src/js/components/ViewFileTreeStore.ts Outdated
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 22, 2026
@wxiaoguang wxiaoguang added this to the 28.0.0 milestone Jul 22, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 22, 2026
@wxiaoguang wxiaoguang added the backport/v1.27 This PR should be backported to Gitea 1.27 label Jul 23, 2026
@wxiaoguang
wxiaoguang enabled auto-merge (squash) July 23, 2026 02:01
@wxiaoguang
wxiaoguang merged commit 20221e1 into go-gitea:main Jul 23, 2026
23 checks passed
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Jul 23, 2026
wxiaoguang added a commit that referenced this pull request Jul 23, 2026
…8033) (#38589)

Backport #38033

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: yszl666 <941131649@qq.com>
Co-authored-by: dzf <douzf@sparkspacetech.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
silverwind added a commit to bircni/gitea that referenced this pull request Jul 24, 2026
* origin/main: (21 commits)
  feat(setting): add shared [redis] section as default for redis-backed subsystems (go-gitea#38550)
  fix(webhook): remove slack channel name check (go-gitea#38608)
  ci: derive topic labels from PR title (go-gitea#38595)
  fix: download dropdown menu clipped on the branches page (go-gitea#38604)
  enhance(actions): action view enhancements (go-gitea#38594)
  enhance: keep status check list scrolled on merge box reload (go-gitea#38597)
  fix: make auth source group sync correctly handle team removal (go-gitea#37161)
  fix(oauth2): enforce mandatory 2FA policy on OAuth2 authorize/grant endpoints (go-gitea#38591)
  refactor: hide git repo path details from more packages (go-gitea#38601)
  fix(project): prevent database mutations on invalid MoveIssues payload (go-gitea#38600)
  refactor: retry file remove/rename when a file is busy and clean up os detection (go-gitea#38588)
  fix(actions): make SingleWorkflow.Marshal round-trip multi-line run blocks (stop silent job stranding) (go-gitea#38520)
  fix(issue): display error toast on batch action failures instead of reloading page (go-gitea#38593)
  perf(emoji): optimize FindEmojiSubmatchIndex using slice-based Trie (go-gitea#38573)
  test(e2e): add pull request merge box test, update AGENTS.md (go-gitea#38576)
  fix(api): align Swagger schemas for UserSettings and TopicListResponse (go-gitea#38590)
  fix(file-tree): handle submodule links and missing view container (go-gitea#38033)
  refactor: clean up git repo and model migration packages (go-gitea#38564)
  [skip ci] Updated translations via Crowdin
  fix(actions): fail unexpandable reusable workflow callers and decouple the job emitter's cross-run processing (go-gitea#38565)
  ...

# Conflicts:
#	services/actions/reusable_workflow_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/done All backports for this PR have been created backport/v1.27 This PR should be backported to Gitea 1.27 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants