Skip to content

Commit

Permalink
Automate creation of vanity URLs for each country & language
Browse files Browse the repository at this point in the history
  • Loading branch information
Yassine EL OUARDI committed Sep 14, 2023
1 parent 5a60a64 commit 980d6f3
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
import org.apache.sling.api.SlingHttpServletResponse;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.servlets.SlingAllMethodsServlet;
import org.graalvm.util.CollectionsUtil;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -65,7 +63,6 @@ protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse
Resource resource = request.getResourceResolver().getResource(ETC_ACS_COMMONS_LISTS_COUNTRIES_JCR_CONTENT_LIST);
if (Objects.nonNull(resource)) {
countries = new HashMap<>();
@NotNull
Iterable<Resource> children = resource.getChildren();
for (Resource childResource : children) {
String title = childResource.getValueMap().get("jcr:title", String.class);
Expand Down

0 comments on commit 980d6f3

Please sign in to comment.