Comments (4)
Hi,
Ok, so you have some sites where you want to use the redirect functionality, but you have one where you don't want to redirect at all?
Hadn't thought about that scenario, I must admit. :) You could use PHP in your config file to enable/disable geomate, or manipulate the redirectMap, but I'm open adding some way of disabling it in a prettier way through the config. How do you envision that this should work? Would an array of site handles in a config setting work? Or maybe by site group? Or maybe autoRedirectEnabled
could either be a boolean like now, but also an array of enabled sites?
from geomate.
I did not even realize I could disable in the config file, I should have thought to look for something like that...
I should also say thank you for an awesome (and free!) plugin, regardless of what comes of this discussion, and thank you for responding so quickly to my post.
For site groups vs site handles, I would think site handles would give more power to the user in the event that site groups are not organized efficiently or something. Enabled sites is also an interesting thought; I had only thought of it from the exclusion perspective. For my specific use case, being able to exclude a site would be more efficient than tracking which sites should be included as the number of sites that I need to exclude is just the one out of a current four
from geomate.
+1 on this. My current redirectMap is
'redirectMap' => [
'store' => 'us',
'www' => '*',
],
So, visitors from the US are sent to the "store" site, and everyone else is sent to the "www" site. We're launching a customer portal that needs to be accessible from all countries, so being able to exclude the "customers" site from any redirection would be great. Something like:
'redirectExclude' => ['customers','otherSiteHandle'],
'redirectMap' => [
'store' => 'us',
'www' => '*',
],
from geomate.
I added a autoRedirectExclude
config setting in v1.2.0 which should address this issue.
from geomate.
Related Issues (20)
- Should Geomate read and redirect based on GeoMateRedirectOverride cookie? HOT 2
- How to access geomate data in another plugin? HOT 2
- Allow disabling override paramter value completely HOT 3
- Macro "copyTextField" is not defined in template "_includes/forms". HOT 1
- addOverrideParam does funny things HOT 2
- Since updating to Craft 3.7 there have been many reports of re-direct loops occurring resulting in time outs HOT 5
- Feature request: Provide currency information
- Site Groups HOT 2
- Is there a way to autoRedirectEnabled only on first time page load? HOT 2
- craft.geomate.country.country.name null when using forced IP locally HOT 1
- Error when using 'redirectMapSimpleModeKey' => 'language', HOT 2
- Exception thrown when GeoIP databases are missing and `redirectMapSimpleModeKey` is set to `'language'`
- Auto-redirects based on browser-language should work regardless of GeoIP2 databases being present or not
- When assigned countries to the redirectMap they must be lower case otherwise the redirects won't work HOT 1
- Add setting for local IP HOT 1
- How to check what State/Province visitor is in?
- Craft CMS 4 update issues HOT 3
- Issue when behind NordVPN HOT 5
- 3.0.0-beta.1 - error when used with commerce 5 HOT 1
- No database found!
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 geomate.