Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mark (a11n)

    (@thingalon)

    Hi @sebastiengc

    The page at?https://ringtwice.be/nl?is generated by WordPress. However, the page?https://ringtwice.be/nl/?is generated by a Rails application.

    This is a slightly unusual setup. As /nl/ redirects to /nl, would it make sense to just have /nl/ served by WordPress in the first place?

    However, if that’s not possible, you should be able to customize the URLS that Jetpack Boost uses when generating Critical CSS using the jetpack_boost_critical_css_urls filter.

    If you are mixing Rails with WordPress, it sounds like you are an advanced user, and are likely comfortable with coding? Something like this might work with some testing and modification:

    function custom_url_strip( $urls ) {
        return array_map( function( $url ) {
            return str_replace( '/nl/', '/nl', $url );
        }, $urls );
    }
    add_filter( 'jetpack_boost_critical_css_urls', 'custom_url_strip' );
    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hello @sebastiengc

    It’s been one week since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Optimize Critical CSS Loading on landing with parameters’ is closed to new replies.