mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -50,6 +50,10 @@ const (
|
||||
name = "Tax RSS"
|
||||
url = "/two/key.xml"
|
||||
identifier="xml"
|
||||
[[menu.hash]]
|
||||
name = "Tax With #"
|
||||
url = "/resource#anchor"
|
||||
identifier="hash"
|
||||
[[menu.unicode]]
|
||||
name = "Unicode Russian"
|
||||
identifier = "unicode-russian"
|
||||
@@ -262,6 +266,18 @@ func TestPageMenu(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
// issue #888
|
||||
func TestMenuWithHashInUrl(t *testing.T) {
|
||||
ts := setupMenuTests(t, MENU_PAGE_SOURCES)
|
||||
defer resetMenuTestState(ts)
|
||||
|
||||
me := ts.findTestMenuEntryById("hash", "hash")
|
||||
|
||||
assert.NotNil(t, me)
|
||||
|
||||
assert.Equal(t, "/Zoo/resource/#anchor", me.Url)
|
||||
}
|
||||
|
||||
// issue #719
|
||||
func TestMenuWithUnicodeUrls(t *testing.T) {
|
||||
for _, uglyUrls := range []bool{true, false} {
|
||||
|
Reference in New Issue
Block a user