aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/shared/favorite.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/shared/favorite.js')
-rw-r--r--server/sonar-web/src/main/js/components/shared/favorite.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/shared/favorite.js b/server/sonar-web/src/main/js/components/shared/favorite.js
index b44d83d6338..c8c13d95973 100644
--- a/server/sonar-web/src/main/js/components/shared/favorite.js
+++ b/server/sonar-web/src/main/js/components/shared/favorite.js
@@ -40,13 +40,13 @@ export default React.createClass({
},
addFavorite() {
- const url = `${window.baseUrl}/api/favourites`;
+ const url = `/api/favourites`;
const data = { key: this.props.component };
$.ajax({ type: 'POST', url, data }).done(() => this.setState({ favorite: true }));
},
removeFavorite() {
- const url = `${window.baseUrl}/api/favourites/${encodeURIComponent(this.props.component)}`;
+ const url = `/api/favourites/${encodeURIComponent(this.props.component)}`;
$.ajax({ type: 'DELETE', url }).done(() => this.setState({ favorite: false }));
},