jamdocs icon indicating copy to clipboard operation
jamdocs copied to clipboard

Slashes in slugs

Open davestewart opened this issue 4 years ago • 3 comments

Hello.

It doesn't seem possible to resolve routes with slashes in slugs.

Is this possible?

davestewart avatar Jun 03 '20 00:06 davestewart

I think it should be? Will have a look at it soon!

samuelhorn avatar Aug 23 '20 18:08 samuelhorn

I am having this issue to, I have the following under settings.json:

{
      "section": "Packages",
      "topics": [
        {
          "title": "Packages",
          "slug": "packages"
        },
        {
          "title": "Collection",
          "slug": "packages/collection"
        }
      ]
    }

and in collection.md:

---
title: Collection
date: 2020-10-07 19:00:00
slug: packages/collection
---

It throws a 404.

mrbenosborne avatar Oct 07 '20 13:10 mrbenosborne

Hmm.

If you put a slug in settings.json like "test/test" it will indeed go to the right route when you click the link. But maybe @gridsome/source-filesystem don't support creating routes by putting *.md files in a sub-directory. Will have to investigate this further.

samuelhorn avatar Oct 07 '20 14:10 samuelhorn