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

Url sub paths are not removed in Map Remote #2181

Open
rahulrsi opened this issue Oct 31, 2024 · 1 comment
Open

Url sub paths are not removed in Map Remote #2181

rahulrsi opened this issue Oct 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@rahulrsi
Copy link

Description

Url sub paths are not removed in Map Remote

Steps to Reproduce

I have setup a rule for https://someapi.somedomain.com/api/somepath => http://localhost:3004

I am expecting it to strip /api/somepath from the mapping. But its always appending /api/somepath to localhost which is giving 404 errors.
Here is a screenshot:
image

  • App version: e.g Proxyman 3.9.0
  • macOS version: e.g macOS Monterey
@rahulrsi rahulrsi added the bug Something isn't working label Oct 31, 2024
@NghiaTranUIT
Copy link
Member

If you want to remove the path, you should add the / in the Map To: Path text field.

If you leave it empty, it will use the same path.

If you have complicated conditions to make a Map Remote, please consider using the Scripting too. Here is the snippet code: https://docs.proxyman.io/scripting/snippet-code#change-request-destination-scheme-host-port-path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants