Skip to content

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

Open
yszl666 wants to merge 1 commit into
go-gitea:mainfrom
yszl666:main
Open

fix(file-tree): handle submodule links and missing view container#38033
yszl666 wants to merge 1 commit into
go-gitea:mainfrom
yszl666:main

Conversation

@yszl666

@yszl666 yszl666 commented Jun 8, 2026

Copy link
Copy Markdown

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.

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants