How to create URL structure with multi collections(double :slug)

Edit -if it’s impossible would be nice to have such info, so I won’t take my time looking for it.

Hi everyone!

I’m trying to build a page structure on my site for online garden design services across different regions and cities in Poland. I need help creating a URL structure that looks like this:

  1. Page listing all regions: /garden-designs/
  2. Single page for each region (province): /garden-designs/:region (using collections)
  3. Single page for each city in the region: /garden-designs/:region/:city (also using collections)
    image

Here are real urls for my site

  • garden designs https:// wytwornia-zieleni.pl/ projektowanie-ogrodow-online
  • region https:// wytwornia-zieleni.pl/ projektowanie-ogrodow-online/mazowieckie
  • cities https:// wytwornia-zieleni.pl/ projektowanie-ogrodow-online/mazowieckie/nowy-dwor-mazowiecki (it should be like this but instead is getting /projektowanie-ogrodow-online/nowy-dwor-mazowiecki/nowy-dwor-mazowiecki )

I have everything working on mi sites but can’t handle double :slug for collections pages.

Any tips or advice on how to accomplish this would be greatly appreciated!

Thanks!
@Pakic any help ? @Darko ?

1 Like