solomax commented on a change in pull request #165:
URL: https://github.com/apache/openmeetings/pull/165#discussion_r730640402
##########
File path:
openmeetings-util/src/main/java/org/apache/openmeetings/util/OpenmeetingsVariables.java
##########
@@ -248,6 +248,14 @@ public static String getBaseUrl() {
return baseUrl;
}
+ public static String getWebappPath() {
+ String webappPath = baseUrl;
+ if (webappPath.endsWith("/")) {
+ webappPath = webappPath.substring(0,
webappPath.length() - 1);
+ }
+ return webappPath.substring(webappPath.lastIndexOf("/") + 1);
Review comment:
this method can be as simple as `new URL(baseUrl).getPath()` :)
or `new URI(baseUrl).getPath()` :))
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]