Skip to content

Create a FieldtypeURI to complement FieldtypeURL #529

Open
@solonmedia

Description

@solonmedia

Short description of the enhancement

It would be great to add a URI fieldtype to core to allow for easier manipulation of protocols outside those typically parsed by parse_url.

There is a library that extends and enhances parse_url into a parse_uri method that seems to be a drop-in replacement for parse_url but would extend the options to include a facility to parse additional protocols.

https://github.com/peterpostmann/php-parse_uri

Current vs. suggested behavior

Right now if you are using a protocol link URI that parse_url does not understand, an error will be thrown using the FieldtypeURL.

An example of this would be the sms: protocol which works similar to the tel: protocol but pushes a request to open a messaging app rather than the phone app. This currently fails with FieldtypeURL

Extending this to include URI or have an optional URI Fieldtype with additional security features would be useful.

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