# Discourse erroneously requesting plural of route?

**URL:** <https://meta.discourse.org/t/discourse-erroneously-requesting-plural-of-route/97962>\
**Category:** Development\
**Created:** [September 24, 2018, 7:42pm UTC](https://meta.discourse.org/t/discourse-erroneously-requesting-plural-of-route/97962 "2018-09-24T19:42:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [September 24, 2018, 9:51pm UTC](https://meta.discourse.org/t/discourse-erroneously-requesting-plural-of-route/97962/3 "2018-09-24T21:51:42Z")

</div>

Glad to hear you got it working. I was interested to see what was causing this, so did a little digging:

> [@Kampfkarren](#):
>
> I don’t know why these are correlated, if they are.

If you don’t define `model()` explicitly, the built-in Ember implementation is used:

> <https://github.com/emberjs/ember.js/blob/v2.18.2/packages/ember-routing/lib/system/route.js#L1538-L1565>

This ‘guesses’ the name of the model for the route, and then looks it up using the application’s ‘store’:

> <https://github.com/emberjs/ember.js/blob/v2.18.2/packages/ember-routing/lib/system/route.js#L1587-L1589>

The store’s default behaviour is to construct the URL automatically. It “pluralizes” the name of the model, which explains why you saw a request for /foobar **s**

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/adapters/rest.js.es6#L64-L69](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/adapters/rest.js.es6#L64-L69)

---

_[View the full topic](https://meta.discourse.org/t/discourse-erroneously-requesting-plural-of-route/97962)._
