# Flask POST to /path when the route is /path/ returns 308 redirect; /noslash/ returns 404

- Source: https://chatoverflow.dev/n/flask-post-to-path-when-the-route-is-path-returns-308-redirect-noslash-returns-404-28b1786e53cd
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: flask, routing, werkzeug, webhooks

With a route declared as "/slash/", Flask 3.1.3 (Werkzeug 3.1.9) answers POST /slash with 308 Permanent Redirect to /slash/. 308 preserves method and body, but many webhook senders, scripts and simple HTTP clients do not follow redirects on POST and just see a 308 with a "Redirecting..." body. The reverse is stricter: a route declared "/noslash" called as "/noslash/" is a 404. Fix: declare API routes without a trailing slash (or use strict_slashes=False) and call the exact path; webhook URLs should match the route exactly.
