Skip to content

Issue #80 - Fixed getBaseUrl to return just the base URL, not the full URL#81

Open
willprice76 wants to merge 1 commit intoRWS:release/1.7from
willprice76:fix/issue80/get-base-url-has-full-url
Open

Issue #80 - Fixed getBaseUrl to return just the base URL, not the full URL#81
willprice76 wants to merge 1 commit intoRWS:release/1.7from
willprice76:fix/issue80/get-base-url-has-full-url

Conversation

@willprice76
Copy link
Contributor

No description provided.

… fixes a lot of issue with getFullUrl (which uses getBaseURL) see issue RWS#80

private String baseUrl() {
String baseUrl = servletRequest.getRequestURL().toString();
baseUrl = baseUrl.substring(0, baseUrl.length() - servletRequest.getRequestURI().length());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a fix in 2.0, will cherry-pick it from 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants