From ec6ea3885787c70831980ab5291e17a8ffe4f80f Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 17 Jun 2016 09:33:18 +0200 Subject: [PATCH] fix display of My Projects page when web context is set --- server/sonar-web/src/main/js/api/components.js | 2 +- .../src/main/js/apps/account/projects/ProjectsContainer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5