From: Stas Vilchik Date: Fri, 17 Jun 2016 07:33:18 +0000 (+0200) Subject: fix display of My Projects page when web context is set X-Git-Tag: 6.0-RC1~294 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec6ea3885787c70831980ab5291e17a8ffe4f80f;p=sonarqube.git fix display of My Projects page when web context is set --- diff --git a/server/sonar-web/src/main/js/api/components.js b/server/sonar-web/src/main/js/api/components.js index a170a6a00d8..3c7581dba9b 100644 --- a/server/sonar-web/src/main/js/api/components.js +++ b/server/sonar-web/src/main/js/api/components.js @@ -100,6 +100,6 @@ export function getProjectsWithInternalId (query) { } export function getMyProjects (data) { - const url = window.baseUrl + '/api/projects/search_my_projects'; + const url = '/api/projects/search_my_projects'; return getJSON(url, data); } diff --git a/server/sonar-web/src/main/js/apps/account/projects/ProjectsContainer.js b/server/sonar-web/src/main/js/apps/account/projects/ProjectsContainer.js index 182d5ef1600..ba1fe4b6c84 100644 --- a/server/sonar-web/src/main/js/apps/account/projects/ProjectsContainer.js +++ b/server/sonar-web/src/main/js/apps/account/projects/ProjectsContainer.js @@ -46,7 +46,7 @@ export default class ProjectsContainer extends React.Component { loadProjects (page = this.state.page, query = this.state.query) { this.setState({ loading: true }); - const data = { ps: 20 }; // FIXME + const data = { ps: 100 }; if (page > 1) { data.p = page; }