Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripping trailing slashes breaks django admin #1744

Open
rnovacek opened this issue Nov 24, 2023 · 0 comments
Open

Stripping trailing slashes breaks django admin #1744

rnovacek opened this issue Nov 24, 2023 · 0 comments

Comments

@rnovacek
Copy link

Bug Report

Current Behavior

serverless-offline strips trailing slashes from URL, so accessing http://localhost:8000/admin/ in the browser translates into http://localhost:8000/admin for the backend that is running with serverless-offline.

Expected behavior/code

URLs ending with slash should have the slash on backend and URLs without shouldn't have. In other words, serverless-offline shouldn't add or remove trailing slash. Or at least there should be an option for this behaviour.

Environment

  • serverless version: 3.2.0
  • serverless-offline version: 13.3.0
  • node.js version: v20.9.0
  • OS: Fedora 39

optional, if you are using any of the following frameworks to invoke handlers

  • python version: v3.9.18
  • django version: 4.2

Possible Solution

Add an option for this.

Additional context/Screenshots

There was noStripTrailingSlashInUrl in older versions of serverless-offline but it got removed. I have no idea what was the reason: 71ee21d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant