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

LinkControl: Remove home URL from suggestion #52572

Closed
richtabor opened this issue Jul 12, 2023 · 2 comments · Fixed by #54553
Closed

LinkControl: Remove home URL from suggestion #52572

richtabor opened this issue Jul 12, 2023 · 2 comments · Fixed by #54553
Assignees
Labels
[Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Status] In Progress Tracking issues with work in progress [Type] Task Issues or PRs that have been broken down into an individual action to take

Comments

@richtabor
Copy link
Member

As a follow-up to #52523, I propose removing the site's home URL from the suggestion?.url.

For example, on my site richtabor.com, the About page would render /about, instead of https://richtabor.com/about. This would help reduce the information density and improve scan-ability.

In the screenshot below, localhost:888 would be omitted.

CleanShot 2023-07-12 at 11 32 33
@richtabor richtabor added the [Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) label Jul 12, 2023
@richtabor richtabor mentioned this issue Jul 12, 2023
13 tasks
@jordesign jordesign added the [Type] Task Issues or PRs that have been broken down into an individual action to take label Jul 18, 2023
@getdave
Copy link
Contributor

getdave commented Sep 15, 2023

In theory this is a case of:

  • getting the baseURL for the site.
  • search and replace on the value

However we should probably try and keep the Link Control ignorant of such things so it could be a little trickier.

@richtabor
Copy link
Member Author

richtabor commented Sep 15, 2023

Could we add a parameter within filterURLForDisplay to omit the baseURL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Status] In Progress Tracking issues with work in progress [Type] Task Issues or PRs that have been broken down into an individual action to take
Projects
Status: Done
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants