Skip to content

Implementation of Redirect and tests #93

@Ericthilen

Description

@Ericthilen

This PR replaces the previous branch and fixes the redirect filter implementation. The old URL-Redirect-Filter branch had issues. #41

Requirements

Support a configurable list of redirect rules, each containing:

sourcePath (string or regex)

targetUrl

statusCode (301 or 302)

When a request matches a rule:

Stop the pipeline

Return a redirect response with the correct Location header

Ensure rules are evaluated in order

Log each redirect for debugging

Add tests for:

301 redirect

302 redirect

No matching rule

Regex or wildcard matching (if implemented)

Examples

/old-page → /new-page (301)

/temp → https://example.com/temporary (302)

/docs/* → /documentation/ (301, wildcard)

Metadata

Metadata

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