Skip to content

Attempt to detect internal URLs #1

@alwaysblank

Description

@alwaysblank

Proposal

When a user selects the "External" link type, attempt to match that URL against internal resources before saving to the database. If it can be matched, adjust the type and value to point to that internal resource instead of URL.

Drawbacks

In some cases, it may be difficult or impossible to authoritatively establish what content a URL refers to. This could be addressed by stopping the attempt if there is ambiguity.

This may lead to behavior by the plugin that is confusing or unexpected from the perspective of the user. Messaging could alleviating possible confusion. A toggle could turn the option on/off, allowing the site admin to determine what is best for their users.

A user may have a good reason to enter a URL rather than linking to an internal object. I'm at a loss to think of a specific example at the moment, but it seems feasible. Currently, I'm not sure how to address this would adding addition UI cruft.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions