Skip to content

Commit

Permalink
Fix canonical url for those ending with slash
Browse files Browse the repository at this point in the history
  • Loading branch information
hollingsworthd committed Dec 8, 2014
1 parent 3fbfa79 commit b17d4fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/src/com/screenslicer/core/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -1342,9 +1342,6 @@ private static String getUriBase(String fullUri, boolean relative) {
if (fullUri.contains("&")) {
fullUri = fullUri.split("&")[0];
}
if (fullUri.endsWith("/")) {
fullUri = fullUri.substring(0, fullUri.length() - 1);
}
if (relative) {
String relativeBase = "";
int index = fullUri.lastIndexOf('/');
Expand Down

0 comments on commit b17d4fe

Please sign in to comment.