• Resolved nicoter

    (@nicoter)


    Hi,

    The plugin doesn’t work with permalinks such as:

    pdf/2019/file_2_01.pdf
    pdf/2019/A.File.pdf

    The underscores get replaced with dashes, the uppercase get converted to lowercase and the first dot gets removed. Resulting in:

    pdf/2019/file-2-01.pdf
    pdf/2019/afile.pdf

    Is this as intended or a bug?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @nicoter,

    the custom permalinks are converted to lowercase by default. You can disable it by using this line of code (just paste it to functions.php file in child theme directory):

    add_filter('permalink_manager_force_lowercase_uris', '__return_false');

    As regards special characters, they also removed by default, but this option can be disabled in Permalink Manager settings (“Strip special characters from slugs“).
    https://permalinkmanager.pro/docs/tutorials/how-to-keep-the-dots-inside-the-permalinks/

    Best regards,
    Maciej

    Thread Starter nicoter

    (@nicoter)

    Hi Maciej,

    That helped, thanks!

    Why not add the filter as a setting and enable the settings by default?

    Regards

    Plugin Author Maciej Bis

    (@mbis)

    Hi @nicoter,

    I am glad that you manged to make it working.

    I did not add it to the interface, because this option is not widely used and I wanted to keep the settings panel uncluttered.

    Best regards,
    Maciej

    Thread Starter nicoter

    (@nicoter)

    Underscores could be part of the “Strip special characters from slugs” setting?

    Plugin Author Maciej Bis

    (@mbis)

    They work like that already. If this option is turned off, the underscores (+ dots, commas, | [vertical bars]) are not removed from custom permalinks.

    The only functionality that needs to be deactivated with custom code snippet is automatic conversion to lowercase.

    Thread Starter nicoter

    (@nicoter)

    Got you, thanks for clarifying!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘underscores, uppercase and multiple dots’ is closed to new replies.