diff options
| author | Syphdias <syphdias+git@gmail.com> | 2021-03-28 16:09:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-28 19:39:22 +0530 |
| commit | 54744ba6943321c22e69d65ef2377b398f70eb7d (patch) | |
| tree | f6ec95cd7f9bd29e5fd70643625cf3d528e65179 /assets/css/common/header.css | |
| parent | 0f0e027def4bce325f810be4c9f4e3c3a9218b68 (diff) | |
Fix path in editPost URL for Windows (#333)
`.File.Path` is OS dependant and uses `\` as directory separator. This leads to
cases where posts get the wrong URL, if in a sub folder, e.g.
`content/posts/folder\post.md`.
One idea was to replace `\` with `/` this however breaks valid files (on Unix
systems) which include `\` in the file name.
According to the docs [`path.Join`](layouts/partials/edit_post.html) is OS
unaware and converts to a Unix-like path.
> Note: All path elements on Windows are converted to slash ('/') separators.
PS: It looks like hugo also uses this internally to build URLs.
PPS: Solution was discussed in #278.
Diffstat (limited to 'assets/css/common/header.css')
0 files changed, 0 insertions, 0 deletions
