SOLVED: Wrong Social Sharing URL of CPT( using ACF)

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.

I use an Archive template for my postS page and a diffferent template for CPT. Both templates contain the Social Sharing element.

While the Social Sharing URLs are fine on my postS page/they contain the CPTs’s URL (e.g. https://domain.com/dev/blog/post-1/) the same is not true in case of my CPT template where the same URL is altered to https://domain.com/dev/dev/blog/post-1/
The second URL contains as seen above a duplicate folder (dev) in its structure.

Hi Lucian,
Thanks so much for your report!

We have already received a report by email that the og:url for archives is the url of the last post and not that of the archive itself. Accordingly, a task already exists.

However, the double “dev” is new. Is your installation located in a subfolder called “dev”?

Best regards,
timmse

Yes, my Wordpress installation is in a folder called “dev”

Hey @timmse and @Lucian,

I am facing this issue with the Social Share element too. Bricks 1.12.3.

The problem is that the social share URL includes the subdirectory twice in the URL string. So it seems this is an issue with WP instances in subdirs. Mine is a multisite for what it’s worth.

For example, this is a CPT “Attraction” using a Bricks template with a Social Share element further down the page:

Hover over any of the social-share icons and you will see the URL produced is:

https://dogloversfestival.com.au/sydney/sydney/attraction/advance-stage/

This post is marked WIP from some time ago so I’m hoping with this extra bit of info you can refine your bug-hunt and we might see a solution soon?

It is a requirement for our templates across 8 total sub-sites that are experiencing this problem right now.

Cheers,
Tom

Hey guys,

I know devs have got a lot going on with v2.0 in the works. I’m hoping for an acknowledgement that this bug is actually a WIP and is being tracked.

As it stands we’re unable to use the social-share element on any multisite. For now, the client is understanding, but ideally we can use the element sometime soon :slight_smile:

Cheers,
Tom

Hi Tom,
Thanks so much for bringing this up again. I added another task on this, specifically regarding the subfolder installation issue (double folder in URL).

1 Like

Hi guys,

We fixed this issue in Bricks 2.0 beta, which is now available in your account.
Changelog: Bricks 2.0-beta Changelog – Bricks

Please let us know if you are still experiencing issues.

As with any pre-stable release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

1 Like

Thank you Stefan!

I am not going to try the beta release on the production multisite, so I will wait for stable release.

If there is a long gap until stable 2.0, would it be possible for me to implement a fix on 1.12.x via child theme?