Skip to content

Conversation

@jenae-janzen
Copy link
Contributor

@jenae-janzen jenae-janzen commented Oct 23, 2023

(Moved from #38640)

https://linear.app/netlify/issue/FRA-19/force-is-not-honoured
https://linear.app/netlify/issue/FRA-21/conditions-on-redirects-are-not-honoured

When a redirect is created, it can accept a force parameter that can trigger the redirect even if the fromPath matches a piece of content. However, this functionality isn't working with the Adapter, possibly because the parameter isn't being passed along into the routes handler.

Description

Documentation

Tests

Related Issues

@jenae-janzen jenae-janzen requested a review from pieh October 23, 2023 18:04
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 23, 2023
@jenae-janzen jenae-janzen changed the title move force redirects changes to main repo Fix: respect 'force' redirects Oct 23, 2023
@pieh pieh changed the title Fix: respect 'force' redirects fix: respect 'force' and 'conditions' properties on redirects Oct 24, 2023
@pieh pieh added topic: adapters Related to Gatsby Adapters and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Oct 24, 2023
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank You!

@pieh pieh merged commit 48d311e into gatsbyjs:master Oct 24, 2023
pieh added a commit that referenced this pull request Oct 25, 2023
* move force redirects changes to main repo

* empty commit

* fix: conditions and add e2e test case

* test: fix country condition assertion

---------

Co-authored-by: Michal Piechowiak <[email protected]>
(cherry picked from commit 48d311e)
pieh pushed a commit that referenced this pull request Oct 26, 2023
#38664)

* move force redirects changes to main repo

* empty commit

* fix: conditions and add e2e test case

* test: fix country condition assertion

---------

Co-authored-by: Michal Piechowiak <[email protected]>
(cherry picked from commit 48d311e)

Co-authored-by: Jenae Janzen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: adapters Related to Gatsby Adapters

Projects

Status: Published

Development

Successfully merging this pull request may close these issues.

2 participants