soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
315 stars 31 forks source link

Adding mailto: or tel: before a link adds an unnecessary http:// when using ACF fields. #3519

Open Kpudlo opened 3 months ago

Kpudlo commented 3 months ago

Originally from #898 via @Green-Zero-Development

I've run into this problem in a project I'm working on rn.

I ended up using a Code Box as a workaround - but I recreated this in sandbox for exploration: https://oxygen-q8b669ncd2zxl.oxygen-demo.qsandbox.org/sample-page/

Further details:

The ACF field is "Text" type (as far as I know, there's no phone type). The "tel:" is manually typed before the Oxygen shortcode in the URL box of the "Link Wrapper" element. I didn't see any other way to create a tel: link using the Link Wrapper. I also did the same with a "Text Link" element.

Confirmed and reported internally via https://github.com/soflyy/oxygen/issues/4045.

A temporary workaround is to use the Meta / Custom Field Data Point instead of the Advanced Custom Field Data Point.