Skip to content
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

Did you know that main AngularJS.org page is not accessible with IE9? #1075

Closed
crussi opened this issue Jun 18, 2012 · 5 comments
Closed

Did you know that main AngularJS.org page is not accessible with IE9? #1075

crussi opened this issue Jun 18, 2012 · 5 comments
Labels

Comments

@crussi
Copy link

@crussi crussi commented Jun 18, 2012

I was testing my AngularJS app with IE9. I noticed that I could not navigate to the main AngularJS.org website home page: http://angularjs.org/#/list in IE9.

It seems to be stuck in an infinite routing loop. Going from http://angularjs.org to http://angularjs.org/#/list to http://angularjs.org to http://angularjs.org/#/list.

I just thought I would mention it because AngularJS is incredibly important new advancement in browser apps :-)

Best regards,
Chris

@IgorMinar
Copy link
Member

@IgorMinar IgorMinar commented Jun 21, 2012

We are looking into the issue

@crussi
Copy link
Author

@crussi crussi commented Jun 22, 2012

Thank you kindly for all your efforts. The AngularJS framework is an
incredible thing. I just happened to be testing my app in IE and noticed
this issue. I just want to say I am thankful for all that has been done to
make AngularJS so awesome.

Best regards,
Chris Russi

On Thu, Jun 21, 2012 at 4:21 PM, Igor Minar <
reply@reply.github.com

wrote:

We are looking into the issue


Reply to this email directly or view it on GitHub:
#1075 (comment)

@nikyoudale
Copy link

@nikyoudale nikyoudale commented Jun 22, 2012

We've been using Angular for several months now and it's been awesome :)

Here's a workaround we're using for this issue (forces a refresh from any url like example.com/app/foo/bar to example.com/app/#/foo/bar, assuming that there is a <base href="/app/"> tag):

<script type="text/javascript">
  if (window.history == undefined || window.history.pushState == undefined) {
    if (!window.location.hash) {
      var baseHref = document.getElementsByTagName('base')[0].href;
      baseHref = baseHref ? baseHref.replace(/^https?\:\/\/[^\/]*/, '') : baseHref;

      var matches = window.location.pathname.match(new RegExp("^"+baseHref+"(.*)$"));
      var thePath = matches && matches.length > 1 ? matches[1] : "";

      window.location = baseHref+"#/"+thePath;
    }
  }
  </script>
@mhevery mhevery closed this in ffb2701 Jun 22, 2012
@IgorMinar
Copy link
Member

@IgorMinar IgorMinar commented Jun 22, 2012

should be fixed on the site now. the fix will be included with 1.0.1

@crussi
Copy link
Author

@crussi crussi commented Jun 23, 2012

Awesome!

Sent from my iPad

On Jun 22, 2012, at 12:42 PM, Igor Minarreply@reply.github.com wrote:

should be fixed on the site now. the fix will be included with 1.0.1


Reply to this email directly or view it on GitHub:
#1075 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.