fix #1366 add getVirtualHostBasePath
This commit is contained in:
parent
eada090af2
commit
90a65b4a58
2 changed files with 6 additions and 1 deletions
|
@ -58,6 +58,7 @@ import org.codelibs.fess.util.ComponentUtil;
|
|||
import org.codelibs.fess.validation.FessActionValidator;
|
||||
import org.lastaflute.core.message.supplier.UserMessagesCreator;
|
||||
import org.lastaflute.web.TypicalAction;
|
||||
import org.lastaflute.web.response.next.HtmlNext;
|
||||
import org.lastaflute.web.ruts.process.ActionRuntime;
|
||||
import org.lastaflute.web.servlet.request.RequestManager;
|
||||
import org.lastaflute.web.util.LaServletContextUtil;
|
||||
|
@ -382,4 +383,8 @@ public class SystemHelper {
|
|||
return new FessActionValidator<>(requestManager, messagesCreator, runtimeGroups);
|
||||
}
|
||||
|
||||
public String getVirtualHostBasePath(final String s, final HtmlNext page) {
|
||||
return StringUtil.isBlank(s) ? StringUtil.EMPTY : "/" + s;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1618,7 +1618,7 @@ public interface FessProp {
|
|||
|
||||
public default HtmlNext getVirtualHostPath(final HtmlNext page) {
|
||||
return processVirtualHost(s -> {
|
||||
final String basePath = StringUtil.isBlank(s) ? StringUtil.EMPTY : "/" + s;
|
||||
final String basePath = ComponentUtil.getSystemHelper().getVirtualHostBasePath(s, page);
|
||||
return new HtmlNext(basePath + page.getRoutingPath());
|
||||
}, page);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue