Skip to content

Commit

Permalink
Merge pull request #189 from scireum/tbi/baseurl-per-tenant
Browse files Browse the repository at this point in the history
Allows to set the base url per tenant instead of only once per product
  • Loading branch information
andyHa authored Oct 18, 2018
2 parents d9c520f + dc2bdba commit 9664da4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/sirius/biz/web/BizController.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ protected String getBaseUrl() {
LOG.WARN("product.baseUrl is not filled. Please update the system configuration!");
}
}

if (UserContext.getSettings().getConfig().hasPath("tenant.baseUrl")) {
return UserContext.getSettings().get("tenant.baseUrl").asString();
}

return baseUrl;
}

Expand Down

0 comments on commit 9664da4

Please sign in to comment.