Skip to:
Content

BuddyPress.org

Opened 6 months ago

Closed 6 months ago

#8450 closed defect (bug) (fixed)

URL type Profile field renders HTML

Reported by: topher1kenobe Owned by: imath
Milestone: 8.0.0 Priority: normal
Severity: normal Version: 7.2.0
Component: Extended Profile Keywords: needs-patch
Cc:

Description

I have a profile field of the type URL and in the public profile it renders the HTML of the link, rather than the URL linked.

<a href="https://twitter.com/topher1kenobe/&quot; rel="nofollow">twitter.com/topher1kenobe</a>

Attachments (1)

Screen Shot 2021-04-05 at 12.15.56 PM.png (76.5 KB) - added by topher1kenobe 6 months ago.
Screenshot of erronious code.

Download all attachments as: .zip

Change History (3)

@topher1kenobe
6 months ago

Screenshot of erronious code.

#1 @imath
6 months ago

  • Component changed from Core to Extended Profile
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 8.0.0

Hi @topher1kenobe

Thanks for your report and screenshot. I was able to reproduce the issue. It happens when you enable the Autolink feature.

This feature's goal is to add a link to search for the value of the profile field into the membres directory. I believe it doesn't make sense for this field to support this feature. Thanks to the improvements we've been making during the 8.0.0 release, we'll be able to remove the Autolink metabox to avoid confusion.

In the meantime, you can easily fix your issue making sure the Autolink feature is disabled for this field. See screenshot below:

https://cldup.com/9jYKcNILo6.png

#2 @imath
6 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 12878:

xProfile: remove the autolink feature support from the URL field type

Autolinking this field value to a members search is not suitable for this type of field as its goal is to direct the user to the link's location. To avoid admin users confusion, let's remove the Autolink metabox and this feature from the URL field type.

Props topher1kenobe

Fixes #8450

Note: See TracTickets for help on using tickets.