# Crawlable Ember Apps

**URL:** <https://discuss.emberjs.com/t/crawlable-ember-apps/465>\
**Category:** Search\
**Created:** [March 17, 2013, 1:32pm UTC](https://discuss.emberjs.com/t/crawlable-ember-apps/465 "2013-03-17T13:32:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![alexsferreira](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/alexsferreira/32/14628_2.png) [@alexsferreira](https://discuss.emberjs.com/u/alexsferreira)\
**Post date:** [April 22, 2013, 8:34pm UTC](https://discuss.emberjs.com/t/crawlable-ember-apps/465/7 "2013-04-22T20:34:09Z")

</div>

I developed a tool that assists in the creation of snapthots HTML dynamically in real time.

I have used this tool in all applications using ember and I have no problem with indexing on google and bing.

to use it in ember is need to change the location of the route to hash

[tool ajax-seo](http://alexferreira.github.io/ajax-seo/)

###Example:

- Screenshot search with google [http://cl.ly/image/3n450K450h10](http://cl.ly/image/3n450K450h10)

````auto
(function() {

var get = Ember.get, set = Ember.set;

Ember.Location.registerImplementation('hashbang', Ember.HashLocation.extend({   

  getURL: function() {
    return get(this, 'location').hash.substr(2);
  },

  setURL: function(path) {
    get(this, 'location').hash = "!"+path;
    set(this, 'lastSetURL', "!"+path);
  },

  onUpdateURL: function(callback) {
    var self = this;
    var guid = Ember.guidFor(this);

    Ember.$(window).bind('hashchange.ember-location-'+guid, function() {
      Ember.run(function() {
        var path = location.hash.substr(2);
        if (get(self, 'lastSetURL') === path) { return; }
        set(self, 'lastSetURL', null);
        callback(location.hash.substr(2));
      });
    });
  },

  formatURL: function(url) {
    return '#!'+url;
  }

  })
);

})();
```

```
App.Router.reopen({
  location: 'hashbang',
});
```
````

---

_[View the full topic](https://discuss.emberjs.com/t/crawlable-ember-apps/465)._
