apex / apex/up

Case insensitive redirects

未关闭
#619 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Feature Request
主要语言
Go
星标
8.8k
派生
383
PR 合并指标
30 天内没有已合并 PR

描述

## Prerequisites

* [x] I am running the latest version. (`up upgrade`)
* [x] I searched to see if the issue already exists.
* [x] I inspected the verbose debug output with the `-v, --verbose` flag.
* [x] Are you an Up Pro subscriber?

## Description

In migrating over to UP and Hugo at the same time I am getting a lot of 404 issues with pages and inbound links. It comes down to the case of the URL. For example:

* `https://site.com/posts/Foo` returns 404 because the new page is `https://site.com/posts/foo` (lower case).

Is there some trick in the up.json rewrites to make the requested URL downcase? I don't want to have to input every page on my site to have an all lower value in the up.json file.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。