Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dimitrisunited

    (@dimitrisunited)

    Hi @mbis,

    Thank you for the quick reply. It works.

    So the difference was in the file:
    permalink-manager-helper-functions.php

    the regex:

    
    $sanitize_regex = apply_filters("permalink_manager_sanitize_regex", "/[^\p{Xan}\p{Thai}a-zA-Z0-9{$percent_sign}\/_\.|+, -]/ui", $percent_sign);
    

    in this version you removed the \p{Thai} to become:

    
    $sanitize_regex = apply_filters("permalink_manager_sanitize_regex", "/[^\p{Xan}a-zA-Z0-9{$percent_sign}\/_\.|+, -]/ui", $percent_sign);
    

    Again, thank you for your time,
    Dimitris

    Hi,

    It is common practice for nginx to directly handle urls ending with .js. According to @arunbasillal

    In this version, the files are no longer physically generated, but are served dynamically. This is why the issue happens.

    So you have to modify the nginx configuration in order for the superpwa-sw.js url to be handled by php – something like:

    
        location = /superpwa-sw.js {
            try_files $uri $uri/ /index.php?$args;
        }
    
Viewing 2 replies - 1 through 2 (of 2 total)