Fixed context bug

This commit is contained in:
Gunnar Skjold 2024-04-14 13:24:20 +02:00
parent c74e719327
commit 16fb1ea87c

View File

@ -722,7 +722,11 @@ void AmsWebServer::indexHtml() {
config->getWebConfig(webConfig);
stripNonAscii((uint8_t*) webConfig.context, 32);
if(strlen(webConfig.context) > 0) {
context = "/" + String(webConfig.context) + "/";
context = String(webConfig.context);
context.replace(" ", "");
if(!context.isEmpty()) {
context = "/" + context + "/";
}
}
if(context.isEmpty()) {