Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rymsha committed Feb 19, 2025
1 parent 23f03fc commit 97560fc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ public String getContentStudioUrl()
applicationServiceSupplier.get().getInstalledApplication( ApplicationKey.from( "com.enonic.app.contentstudio" ) );
if ( application != null )
{
return ServletRequestUrlHelper.createUri( ServletRequestHolder.getRequest(), "/admin/" + application.getKey() + "/main" );
return "/admin/" + application.getKey() + "/main";
}
return null;
}

public String getApiBaseUrl()
{
return ServletRequestUrlHelper.createUri( ServletRequestHolder.getRequest(), "/api" );
return "/api";
}

public Boolean canLoginAsSu()
Expand Down Expand Up @@ -431,7 +431,7 @@ private ApplicationJson toApplicationJson( final Application application )
Resource resource = resourceServiceSupplier.get().getResource( ResourceKey.from( applicationKey, "/webapp/webapp.js" ) );
if ( resource.exists() )
{
String webappUrl = ServletRequestUrlHelper.createUri( ServletRequestHolder.getRequest(), "/webapp/" + application.getKey() );
String webappUrl = "/webapp/" + application.getKey();
builder.webappUrl( webappUrl );
}

Expand Down

0 comments on commit 97560fc

Please sign in to comment.