Skip to content

Japanese in sidebar menu #14

@RickCogley

Description

@RickCogley

hello - this a question/request and what appears to be a bug.

I know that I can get Japanese kanji names into the sidebar menu by setting the url param in each page, making the first part of the url kanji. For example:

  • url: /Bousai/esolia-bousai-links/ yields "Bousai" in the menu.
  • url: /防災/esolia-bousai-links/ yields "防災" in the menu.

In a Japanese context having 防災 makes more sense in the menu, but sometimes having kanji in an URL makes problems. The kanji get converted to entities sometimes, and this leads to too-long urls in some cases.

So my question is, is there a way to have menu.js pick up a kanji from somewhere to use in the sidebar display?

Secondly, what I think is a bug. When I set the url to kanji, like url: /防災/esolia-bousai-links/, the breadcrumbs break. Please see the two screenshots showing where breadcrumbs are working, and not working when the url contains kanji.

This has a "smell" of something needing to be sent to a filter to sanitize before doing the logic in breadcrumbs.vto.

Screenshot 2024-10-11 at 8 41 21 Screenshot 2024-10-11 at 8 41 59

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions