Skip to content

Commit

Permalink
fix: keep fragment while updating query params
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Sep 23, 2024
1 parent d9d4a8d commit bb6c92d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/io/supertokens/oauth/Transformations.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ private static String transformQueryParamsInURLFromHydra(String redirectTo) {
updatedQuery.append(param).append("&");
}
}
redirectTo = url.getProtocol() + "://" + url.getHost() + ":" + url.getPort() + url.getPath() + "?"
+ updatedQuery.toString().trim();
redirectTo = redirectTo.replace("?" + query, "?" + updatedQuery.toString().trim());
}
} catch (MalformedURLException e) {
throw new IllegalStateException(e);
Expand Down

0 comments on commit bb6c92d

Please sign in to comment.