soneRequest.core.getLocalSone(soneId)?.let { sone ->
setCurrentSone(soneRequest.toadletContext, sone)
val target = soneRequest.httpRequest.getParam("target").emptyToNull ?: "index.html"
- throw RedirectException(target)
+ redirectTo(target)
}
}
- templateContext["sones"] = soneRequest.core.localSones.sortedWith(Sone.NICE_NAME_COMPARATOR)
+ templateContext["sones"] = soneRequest.core.localSones.sortedWith(niceNameComparator)
templateContext["identitiesWithoutSone"] = soneRequest.core.identityManager.allOwnIdentities.filterNot { "Sone" in it.contexts }.sortedBy { "${it.nickname}@${it.id}" }
}