Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to detect internal URLs #1

Open
alwaysblank opened this issue Jun 21, 2018 · 0 comments
Open

Attempt to detect internal URLs #1

alwaysblank opened this issue Jun 21, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@alwaysblank
Copy link
Owner

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.

@alwaysblank alwaysblank added the enhancement New feature or request label Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant