Skip Navigation

[Resolved] During switch to blog urls “/” are replaced with “%2F” & “?lang=en”

This thread is resolved. Here is a description of the problem and solution.

Problem:

Display content of other sub sites.

Solution:

Please check another similar thread here:

https://toolset.com/forums/topic/loading-a-view-from-one-site-on-another-in-wordpress-multisite/

Relevant Documentation:

This support ticket is created 3 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.

Our next available supporter will start replying to tickets in about 2.00 hours from now. Thank you for your understanding.

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: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by serenus 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1922803

I am trying to pull a view from a sub site with includes an action button with a link to a post form in the sub site.

The blog switch takes place but does not land on the proper page because the URL is wrong. An "?lang=en" is inserted between the domain name and the rest of the URL (whether I use [wpv-bloginfo show='url'] or the hard path) and all the "/" are replaced with "%2F".

Any idea why this is happening and how to address it?

#1922821

Hello,

Please elaborate the questions with more details.
1) How do you "pull a view from a sub site"?
With custom PHP codes? please provide detail steps to reproduce the same problem

2) Are you suing WPML plugins?

#1924245

1) I pull the view as instructed here https://toolset.com/forums/topic/loading-a-view-from-one-site-on-another-in-wordpress-multisite/ The view is in the sub site, the pull is in the main. When I hover over the link in the main, the "/" are correct but it already has inserted the "?lang=en". When I land in the sub, the "/" have been replaced with "%2F".

2) I do have the WPML plugins in the network but they are currently inactive. One problem at a time as I develop 😉

#1924631

I did a full reset on WPML and the problem is resolved.

#1924633

Thanks for pointing me towards the likely source of the problem.