Skip to content

Full icon path is displayed when using symbolic links #14

@hmalaud

Description

@hmalaud

Bug description

When using a symbolic link as path, the dropdown shows the full path of each icon instead of only the name.

Steps to reproduce

  1. Install extension
  2. Create symbolic link to icons folder (e.g. /vendor/statamic/cms/resources/svg/icons/)
  3. Create iconamic field in blueprintic link and point to the symbolic link created in 2.
  4. Open the content editor containing the field created in 3.

Environment and versions

Environment
Application Name: Website
Laravel Version: 12.44.0
PHP Version: 8.4.16
Composer Version: 2.9.2
Environment: local
Debug Mode: ENABLED
URL: website.test
Maintenance Mode: OFF
Timezone: UTC
Locale: fr

Cache
Config: NOT CACHED
Events: CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 6
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.71.0 Solo

Statamic Addons
alt-design/alt-sitemap: 1.3.1
eminos/statamic-group: 2.1.0
goldnead/statamic-collapse-fieldtype: 1.1
jacksleight/statamic-bard-texstyle: 3.5.6
jacksleight/statamic-distill: 1.1.0
mitydigital/iconamic: 2.2.3

Additional details

No response

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