Netlify redirect to one with trailing slash

okay so I rewrote a website on NextJS and hosted it on Netlify and my SEO specialist told me that we need to make the urls standard and same as before so we need the trailing slash. I successfully added the trailing slash except for the homepage (that has basepath and it needs to stay that way). How can I make the redirect from example.com/test to example.com/test/?

Netlify config looks like this

# test
[[redirects]]
  from = "/test"
  to = "https://test.netlify.app/test/"
  status = 200
  force = true

[[redirects]]
  from = "/test/*"
  to = "https://test.netlify.app/test/:splat"
  status = 200
  force = true

We have other redirects like this so the initial server acts as a headless to redirect to others based on the basepaths. I also added trailingSlash: true in nextjs config on every server so other paths work except for the one with basepath

Hello trailing slashes do not work in this manner with redirects. On Netlify, trailing slashes are called “pretty URLS”. You can add trailing slashes to your URLs by adding the following in your netlify.toml file:

[build.processing.html]
  pretty_urls = true

Hello. Sorry for taking long. I’ve tried that but it has no effect.
I think redirect is counting slash and no slash as one.

# ITALY
[[redirects]]
  from = "/it"
  to = "https://test.shop/it/"
  status = 301
  headers = {X-From = "Netlify"}

[[redirects]]
  from = "/it/*"
  to = "https://test-other.app/it/:splat"
  status = 200
  force = true

i’ve tried something like this. When you go to test.shop/it it loops on test.shop/it/ with 301 which is a problem.

Hey @altanbgn ,

To help us debug, could you share the link to your site where the redirects are implemented?