-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can disable this plugin except one page? #43
Comments
+1 @wardpeet even tho i know you mentioned you were not interested in supporting this plug in this thread :) gatsbyjs/gatsby#4337 in my use case, i noticed your plugin works fine but disabling client side routing with this method also appears to disable client-only routes (which i need) EDIT: I ended up just following your advice from last year here gatsbyjs/gatsby#4337 (comment) and editing gatsby-node.js as follows:
Now the network/profile page does not attempt to change the url in the case where the route is instead network/{some other name} This works for my use case, it may work for vsolanogo too... There was some concern from ethagnawl here gatsbyjs/gatsby#4337 (comment) on this approach calling it "hard to document and potentially fragile". Can you weigh in on the 'risk' here? You seem really plugged into this project, and its hard to tell who the players are in that 'Disable client side routing?' thread. Thanks for your work/help!! |
@shawngrona Haha, I'm OK with managing this, I don't think many modifications are necessary. I'm part of the gatsby team and I have e2e-tests in place so I should catch breaking changes. @vsolanogo can you give a better description of what you mean? You want a specific page to disable routing but for everything else, not? |
@wardpeet yep |
@wardpeet I need this too. In case you are using a dynamic route for specific page for example. if (page.path.match(/^/app/)) { example: Hope it's clear now! |
I need it only for single page
The text was updated successfully, but these errors were encountered: