How to remove trailing slash on my web URL

i have an url of No code masterclass

i’d like to make it No code masterclass ( without slash at the end )

is this by default on weweb ?

Hi @liam_putra :wave:

Apologies for the late response on this one!

This is by default on WeWeb and we cannot remove the trailing slash as this is how our routing works.

Is there a specific reason you wanted to remove the slash at the end?

1 Like

thanks joyce

I had a similar problem when building a Python API for my uni course, this might also be the case, or also not. Basically I had a route defined as /students/ and when I navigated to localhost/students, it first redirected me (304 Response) to the endpoint with a slash, and then proceeded to do the api thingies. (Completely unrelated, but still) People usually don’t type trailing slashes, which causes this thing to happen in this very specific case.

@liam_putra
you can just truncate it

you can say this is your link: google.com/results/
If its repeating you can truncate the “/” at the end.

Like usual more information is king.
Tell more please :slight_smile:

good old regex will fix this