Skip to content

non-ASCII string in Tab name #1908

Open
@zhongsheng

Description

@zhongsheng

Context

  tabs do
    field :stores, as: :has_many, name: '📖 store'
    field :addresses, as: :has_many, name: 'store 🧭'
    field :others, as: :has_many, name: '其他store '
  end

The above codes will get same turbo_frame_id and cause tab turbo_frame not been load.

String#parameterize removed all non-ASCII string https://github.com/avo-hq/avo/blob/main/lib/avo/tab.rb#L48C34-L48C34

Metadata

Metadata

Assignees

No one assigned

    Labels

    Edge caseIt's not really a bug but an edge-case that might pop up from time to time.EnhancementNot necessarily a feature, but something has improvedGood first issueGood for newcomersHelp wantedWe could use some help with this

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions