Skip to content

setting redirect to true redirects to undefined #2

Description

@oupala

I set metalsmith-aliases to redirect assets:

  .use(aliases({
    redirect: true
  }))

But when I browse the alised url, I get redirected to undefined instead of the real document url:

http://server.example.org/undefined

Am I using the plugin wrongly, or is there a problem while redirecting?

The README file is not documenting how to use the redirect feature si I had to look in the code. But I'm not sure that I'm using it the right way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions