The Unified and Autonomous Development Platform
Change mounting point from /file to /browse for file browsing.
robin shined0a764280086
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/gitlink/GitLinkPanel.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/gitlink/GitLinkPanel.javaindex a2c71f5e7b..4550b654ec 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/gitlink/GitLinkPanel.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/gitlink/GitLinkPanel.java@@ -30,7 +30,7 @@ public class GitLinkPanel extends BlobViewPanel {ConfigManager configManager = GitPlex.getInstance(ConfigManager.class);if (submodule.getUrl().startsWith(configManager.getSystemSetting().getServerUrl() + "/")) {link = new WebMarkupContainer("link");- link.add(AttributeModifier.replace("href", submodule.getUrl() + "/file?revision=" + submodule.getCommitId()));+ link.add(AttributeModifier.replace("href", submodule.getUrl() + "/browse?revision=" + submodule.getCommitId()));} else {link = new Link<Void>("link") {diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/mapper/RootMapper.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/mapper/RootMapper.javaindex 2cc5e431e6..10daab449c 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/mapper/RootMapper.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/mapper/RootMapper.java@@ -123,7 +123,7 @@ public class RootMapper extends CompoundRequestMapper {});- add(new PageParameterAwareMountedMapper("${user}/${repo}/file", RepoFilePage.class));+ add(new PageParameterAwareMountedMapper("${user}/${repo}/browse", RepoFilePage.class));add(new PageParameterAwareMountedMapper("${user}/${repo}/commit", RepoCommitPage.class));add(new PageParameterAwareMountedMapper("${user}/${repo}/commits", RepoCommitsPage.class));add(new PageParameterAwareMountedMapper("${user}/${repo}/compare", BranchComparePage.class));