Comments (8)
I've added code to my .htaccess file to redirect www.zanshin.net to zanshin.net, which does an end run around this issue, but it is still something that ought to be corrected. For the curious, here's the code I put in my .htaccess:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.zanshin.net$
RewriteRule (.*) http://zanshin.net/$1 [R=Permanent]
from octopress.
As best I can tell this is an issue with cross site scripting. I always set up my hosting to redirect the www subdomain and I think that's a generally recommended practice. Thanks @zan5hin for posting an easy way to do it.
from octopress.
Hmm, i'll try to poke around on this early next week both because I would like to understand the cause and because this should work. Redirecting the subdomain is not really an accepted best practice and should not be a requirement of using octopress.
If/when I figure this out... i'll post the solution :-)
from octopress.
I agree this shouldn't be a barrier for using Octopress. Unfortunately it seems like the solution lies in tools I didn't create and am unable to fix. If you can find a solution that doesn't require redirection I'd be very pleased to know how to implement it.
from octopress.
Just an FYI here is the bug thread on this over at modernizer. Modernizr/Modernizr#348
For a temp fix, I removed respond.js from my modernizer build and included separately. If this was an older browser I would probably ignore on my personal site but ie8 is still very popular.
Anyhew hope this helps.
from octopress.
Very good thanks so much for figuring this out. I wish I could hotlink to the build so updates would be automatic. I'll have to figure out what to do with Octopress.
from octopress.
re: hotlinking the build, have you tried using git submodules? http://help.github.com/submodules/
from octopress.
I've managed to solve the issue by replacing the Regex in Modernizr as per ryanseddon's comment on their thread.
Looks like modernizr is using a slightly different regexp compared to the current one in respond.
Modernizr has: !/^([a-zA-Z]+?:(//)?(www.)?)/
Respond has: !/^([a-zA-Z]+?:(//)?)/
Not perfect but it does the job.
from octopress.
Related Issues (20)
- Octopress start page is index of this CMS - what I have done wrong
- v3?
- cant jeklly my hyde
- Integrating twitter bootstrap.
- collection.rb: in `sanitize_label': undefined method `gsub' (NoMethodError)
- my github master branch no code when I run the following code
- How to disable category feed generation? HOT 1
- excerpt_separator presents in config but doesn't used in plugins/octopress_filters.rb
- build error while trying to use octopress in windows 8 HOT 1
- rake generate not working
- How to make a post placed at the top
- Except the markdown editor Windows platforms which other useful blog editor
- Issues Jekyll pulling Google Analytics ID (and other variables) from _config.yml. HOT 1
- Octopress 3 Themes: Options? HOT 14
- Where's the documentation for Octopress 3? HOT 2
- Odd Behavior On "Landing" Page HOT 4
- Can't install on windows HOT 1
- icfjirt HOT 1
- rudy_dev on Debian 9
- Trying to port classic theme to Jekyll
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 octopress.