Skip to content

Commit

Permalink
Merge pull request #5416 from jay-hodgson/SWC-6864
Browse files Browse the repository at this point in the history
  • Loading branch information
xschildw authored Jun 5, 2024
2 parents f8ad328 + c23324e commit 35b31e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class GWTWrapperImpl implements GWTWrapper {

@Override
public String getHostPageBaseURL() {
return GWT.getHostPageBaseURL();
return getHostpageUrl();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,17 @@ public ButtonLinkWidgetViewImpl(
public void configure(
WikiPageKey wikiKey,
String buttonText,
final String url,
String url,
boolean isHighlight,
final boolean openInNewWindow
) {
clear();
button.setText(buttonText);
if (isHighlight) button.setType(ButtonType.INFO);
// Detect old #!, and direct to the right place
if (url.startsWith("#!")) {
url = "/" + url.substring("#!".length());
}
button.setHref(url);
if (openInNewWindow) {
button
Expand Down

0 comments on commit 35b31e0

Please sign in to comment.