Skip to content

404 of utf8 permalink  #988

@ruimashita

Description

@ruimashita

When page url metadata is utf8 string, page's URL retrun 404 error.
Becase hugo command generate URL encoded directory in public dir.
The generated directory should be unencoded.

How to reproduce:

  • Create and edit content/post/ramen.md.
+++
date = "2015-03-14T14:44:15+09:00"
draft = false
title = "ramen"
url = "ラーメン"
+++
# Ramen is a Japanese noodle soup.

## My favorite ramens
  • hugo server -T hyde
  • http://localhost:1313/%E3%83%A9%E3%83%BC%E3%83%A1%E3%83%B3 return 404

generated public files:

$ tree public/ 
public/
├── 404.html
├── css
│   ├── hyde.css
│   ├── poole.css
│   └── syntax.css
├── %E3%83%A9%E3%83%BC%E3%83%A1%E3%83%B3
│   └── index.html
├── favicon.png
├── index.html
├── index.xml
├── post
│   ├── index.html
│   └── index.xml
├── sitemap.xml
└── touch-icon-144-precomposed.png

Not %E3%83%A9%E3%83%BC%E3%83%A1%E3%83%B3 but ラーメン dir should be generated

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions