Directory

Site link block: Add URL path to link display · Issue #211 · WordPress/wporg-showcase-2022 · GitHub
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

Site link block: Add URL path to link display #211

Closed
marko-srb opened this issue Sep 28, 2023 · 2 comments
Closed

Site link block: Add URL path to link display #211

marko-srb opened this issue Sep 28, 2023 · 2 comments
Assignees
Labels
[Component] Backend Anything wp-admin or PHP-related [Component] Blocks/Editor Custom blocks, block variations, or editor customization

Comments

@marko-srb
Copy link

I am not sure how to do this. I did place the right link in metadata, but am not sure how to replace the preview link on this post:

https://wordpress.org/showcase-v2/museo-nacional-thyssen-bornemisza/

So, the link that should be visible is: www.museothyssen.org/webdocs/conectathyssen/artistas-migrantes instead of the short one.

I can do this, if someone can point me to how. :)

@ryelle
Copy link
Contributor

ryelle commented Sep 28, 2023

That's not how this is intended to work— in order for this to be a "pretty url" for display, the URL entered is stripped down to just the "domain.com" part. Otherwise they'd all be displaying "https://www.gv.com/", "https://ageofunion.com/".

The code could probably be updated to show the path too, so it could show "museothyssen.org/webdocs/conectathyssen/artistas-migrantes"

@ryelle ryelle added [Component] Blocks/Editor Custom blocks, block variations, or editor customization [Component] Backend Anything wp-admin or PHP-related labels Sep 28, 2023
@ryelle ryelle changed the title Replace the link preview on this website Site link block: Add URL path to link display Sep 28, 2023
@marko-srb
Copy link
Author

Oh, that makes sense. That preview line works well Kelly. Thank you!

@ryelle ryelle self-assigned this Sep 29, 2023
@ryelle ryelle closed this as completed in e1a3d35 Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Backend Anything wp-admin or PHP-related [Component] Blocks/Editor Custom blocks, block variations, or editor customization
Projects
Archived in project
Development

No branches or pull requests

2 participants