TGViewer
Web Development Web Development @web_dev_bds · 4.43K subscribers
Post #1041 291
Web Development Are they actually the same?
✅ Answer: They’re not the same.

/api/users and /api/users/ are two different URLs.

The trailing slash is part of the path, so the browser and server see them as separate addresses.

It’s not a browser thing. Browsers just send whatever you type. The server (or the framework the programmer set up) decides what to do with each one.

Some servers treat them as completely different pages, others automatically redirect one to the other so users don’t notice.

On pebbl.fun, the version with the slash redirects to the one without it. So only one of them is the “real” page.

One practical difference that often trips people up is how relative links resolve (see the image). That’s why being consistent matters, especially with APIs.

Just use whichever version the docs show. Don’t assume the slash is optional.
  • ❤ 4
More from @web_dev_bds
  1. Oct 8, 2026📕Pro tip if you're using Postgres: Set `application_name` in your app's DB connector/ORM/…
  2. Oct 7, 2026🚀 Beginner → Developer: What to Learn in 6 Months Want to become job-ready but don't know…
  3. Oct 6, 2026React vs Angular
  4. Oct 5, 2026Post #1048
  5. Oct 5, 2026⚡️ 10 VS Code Extensions That Are Actually Useful If you use VS Code for coding, these ext…
  6. Oct 3, 2026How JWT Works
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →