Skip to content

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

Open
@rivudutta

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");

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