Comments (7)
Only thing tricky about this is that we are doing redirects on parse_request where at the time 404 flags have not been set. Can we move redirection to a different action?
from safe-redirect-manager.
Only thing tricky about this is that we are doing redirects on parse_request where at the time 404 flags have not been set.
I was thinking it could be an opt-in behavior because...
Can we move redirection to a different action?
Moving redirection to a different action by default will cause more of WordPress to load (and decrease performance).
from safe-redirect-manager.
I don't understand what you mean by opt-in behavior. We are doing redirects before WP checks if a 404 occurs.
from safe-redirect-manager.
Right, so opt in to waiting until after the 404 occurs.
On Oct 31, 2013, at 17:52, Taylor Lovett [email protected] wrote:
I don't understand what you mean by opt-in behavior. We are doing redirects before WP checks if a 404 occurs.
—
Reply to this email directly or view it on GitHub.
from safe-redirect-manager.
I see. I wish we could find a better way to handle this rather than moving the redirect to a new action. I'd merge a pull request though.
from safe-redirect-manager.
Two PR's, one setting 404 option as the filter, the other setting it as default.
Personally, I'd like to see this behavior as default. It'd remove redirect processing from occurring on every page load, causing a slight performance increase site-wide. The additional processing of getting to template_redirect
for a redirect should be negligible from a user's perspective.
from safe-redirect-manager.
Just occurred to me after all that... A better approach may be to switch redirect detection to use rewrite rules. See #24.
from safe-redirect-manager.
Related Issues (20)
- Migrate to Cypress 11
- Add a "Build release zip" GitHub Action
- Run E2E tests on the zip generated by "Build release zip" action.
- Update Support Level from Active to Stable HOT 1
- Add a GH Actions summary
- Deprecated action requirements prevent merging. HOT 2
- Using the `srm_additional_status_codes` filter hook throws warning
- The plugin hasn't been tested with the latest version of WordPress
- Release version 2.0.0
- Undefined index 'message' HOT 2
- FILTER_SANITIZE_STRING deprecated in PHP 8.1
- Release version 2.0.1
- Show publicly available post types in autocomplete dropdown for Redirect To
- Add PHP checks
- The plugin hasn't been tested with the latest version of WordPress
- Release version 2.1.0 HOT 1
- Allow group/category for redirects
- Upgrade Cypress to version 13 HOT 2
- The plugin hasn't been tested with an upcoming version of WordPress HOT 1
- Release version 2.1.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from safe-redirect-manager.