Skip Navigation

[Resolved] Custom field of URL is adding the site page to the link URL meaning it is broken

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by Jamal 2 years, 10 months ago.

Assisted by: Jamal.

Author
Posts
#2101255
Link.jpg
Raw URL output on page.jpg

I have a custom field that is used on a custom post form to capture social media pages and website addresses.

When the URL is output on the front end via a custom layout it adds the page URL to the beginning for example:

User adds: hidden link

The link on the front end outputs as: hidden link

Obviously this link will not work.

#2101371

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello and thank you for contacting the Toolset support forum.

To better assist you with this issue, I'll need to take a closer look at the view or content template where this happens. Your next reply will be private to let you share credentials safely. Please take a database backup before sharing credentials.

If you cannot share credentials to your website, I'll create a new test site for you so you can reproduce the same issue on it, and I'll help find a solution for it.

#2101691

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Thank you for the credentials. The issue comes from the fact that the field values are not valid URLs. They do not contain the leading https:// or http://
I edited the post and added https:// to facebook URL and it fixed the issue.

If you want to enforce the validation of URL fields, you can activate it on the custom field definition.

I hope this helps. Let me know if you have further questions.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.