question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Gatsby] Two routes that match both page and redirect.

See original GitHub issue

Description While building the site, the following warning is displayed. The negative affect of these redirects can be seen in Safari, where the redirects seem to be circular in nature (endless).

Screenshots

warn There are routes that match both page and redirect. It will result in page not being accessible; this is probably not intentional:
 - page: "/blog/community/she-code-africa-contributhon-boot-camp-report" and redirect: "/blog/community/she-code-africa-contributhon-boot-camp-report" ->
"/blog/community/she-code-africa-contributhon-boot-camp-report"
 - page: "/programs/communitybridge/2020" and redirect: "/programs/communitybridge/2020/" -> "/programs/communitybridge/2020"

Environment:

  • Host OS: Mac
  • Browser: Safari

Contributor Resources

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Zain-Muizcommented, Sep 23, 2021

@san-coding , I’m not quite sure what the issue could be. Maybe @riteshsp2000 or @warunicorn19 could help you better here.

1reaction
riteshsp2000commented, Sep 23, 2021

Yeah… im actually on it. Was a bit occupied with university stuff, will get this on soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with Redirects and Rewrites - Gatsby Cloud
Redirects are settings in the network layer that allow you to route traffic from one url path to another with little to no...
Read more >
Create a page with multiple paths? · Issue #15553 - GitHub
My current solution is creating a different page (through actions. ... but still - on client gatsby redirects us to "correct" page path....
Read more >
Dynamic redirects with Gatsby - Stack Overflow
Seems like Gatsby has page precedence over redirects, so just that redirect for each product might work.
Read more >
Can you create dynamic routes in Gatsby? : r/gatsbyjs - Reddit
For my web app, I wanted a dynamic route of /g/my-awesome-group to represent a dynamic page for a user who created a "group"...
Read more >
Gatsby Changelog | 5.3.0
Gatsby printed the complete contents of the page data to the terminal. ... benomatis: fix(gatsby-plugin-google-gtag): correct script to match google's ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found