Skip to content

Conflict between wikilinks and permalinks #77

@jebeaudoin

Description

@jebeaudoin

Describe the bug
I hate even to call this a "bug" -- but if I use Eleventy's permalink functionality to rewrite a URL, the wikilinks functionality won't be able to convert the link correctly.

To Reproduce

  1. Successfully install eleventy-garden
  2. Note that the regex substitution binyamin uses replaces any white space in a filename with a %20, so that a note named "my great file" produces the URL "/notes/my%20great%20file/"
  3. Use the "permalink" key in the template's front-matter to set the URL for "my great file" to "/notes/my-great-file/"

Help needed
I'm not a developer (obviously) but I think the issue is that what I am calling the "wikilinks" function rewrites the link using the standard escape characters for spaces. Can someone show me where in the code I can change the regex that is replacing the spaces with %20 -- so that I can simply change them to dashes?

Thanks in advance!
jack

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions