How to remove last slash from URL

Hello,

How to remove last slash from URL, See below example URLs

  1. https://wd809.sse.codesandbox.io/category/nature/ to Category: Nature - Test Frontity Blog

  2. https://wd809.sse.codesandbox.io/category/travel/ to
    Category: Travel - Test Frontity Blog

Please explain me how to fix or how to remove last slash from URL
Let me know step by step file name.

Thanks,
Pramod