URL with double bar

Home Forums Calendar Products Events Calendar PRO URL with double bar

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #237698
    mcomarketing
    Participant

    hi!
    please, see this url
    http://s511456428.mialojamiento.es/aloha-news/es/event/

    if you make click to the next month shows this url with double bar like this?
    http://s511456428.mialojamiento.es/aloha-news/es//event/2014-07/

    if you make a copy of this address and paste again, shows correct url without double bar.

    well, my problem is… if you make click to the next month and redirect to a url with double bar, the datail of event is only in english not in spanish. The links button “next and previous month” offer a url strange, but only one time, if you make next again is correct.

    ¿can you help us, please?

    #238194
    Barry
    Member

    Hi – thanks for getting in touch.

    I’m sorry you’re facing these issues and would love to get a better sense of what might be causing them. The first thing that catches my eye is the structure of those permalinks: is it possible you are using a translation plugin, such as WPML or qTranslate?

    If so, does deactivating that plugin restore normal operation of The Events Calendar?

    #246567
    mcomarketing
    Participant

    yes, i am using WPML
    the permalinks structure are
    /%category%/%postname%/

    but, i can’t deactivate de plugin for translation, the site are in two languages

    the double bar is only in the first click in next month.

    thanks

    #247926
    Barry
    Member

    Hi – unfortunately (as we covered in one of the other threads you opened) we can’t offer a great deal of assistance when integrating with WPML. It’s definitely worth approaching the WPML team in case they have any insights to offer, but right at this time there isn’t too much we can do in situations like these.

    #249175
    mcomarketing
    Participant

    thanks,

    #249982
    Barry
    Member

    …One last thing – a bit of a shot in the dark, but could be worth a try – is adding the following snippet to your theme’s functions.php file:

    add_filter( 'tribe_events_getLink', 'resolve_wpml_link_issue' );
    
    function resolve_wpml_link_issue( $link ) {
    	$link = str_replace( '//', '/', $link );
    	return str_replace( ':/', '://', $link );
    }

    Might that help? If not, unfortunately, it may be best to seek help from the WPML team.

    #252021
    mcomarketing
    Participant

    thank you very much!
    Now it works perfectly.

    #253032
    Barry
    Member

    Awesome 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘URL with double bar’ is closed to new replies.