Skip to content

How to forward to a absolute PATH? because thenForwardTo() only accepts host url without PATH. #153

Description

@rivudutta

I want to forward requests to a particular path but I am not able to do it using thenForwardTo(). It is throwing error and it only accepts hostname (without path).

For example, I want to match one absolute URL & forward it to another absolute URL.

// Redirect any github/login requests to github.com/signup
server.anyRequest().forHost("https://github.com/login").thenForwardTo("https://github.com/signup");

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions