Skip to content

Improve display element builders #874

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

Merged
merged 2 commits into from
Apr 13, 2025
Merged

Improve display element builders #874

merged 2 commits into from
Apr 13, 2025

Conversation

labkey-adam
Copy link
Contributor

@@ -298,7 +298,7 @@ public static HtmlString makeFullAnchorLink(String url, String target, String tx
if (null == url)
return HtmlString.of(txt);

return new Link.LinkBuilder(txt).href(url).target(target).clearClasses().getHtmlString();
return new LinkBuilder(txt).href(url).target(target).clearClasses().getHtmlString();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return new LinkBuilder(txt).href(url).target(target).clearClasses().getHtmlString();
return LinkBuilder.simpleLink(txt, url).target(target).getHtmlString();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment, simpleLink() takes String, URLHelper, so doesn't work here. I may add other variants, but not this round.

@labkey-adam labkey-adam merged commit 045fb40 into develop Apr 13, 2025
4 checks passed
@labkey-adam labkey-adam deleted the fb_builders branch April 13, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants