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 ?
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 ![]()
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?
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 ![]()
good old regex will fix this