discourse/app
Blake Erickson ee366f7ac7 FIX: Ensure load more directory items has a .json url
The `/directory_items` route needs to have a .json url, but the rails
url helper `_path` doesn't return the format of the route.

I tried passing in a format options to `directory_items_path`. Which
works in the rails console

```
[8] pry(main)> directory_items_path(params.merge(:format => :json))
=> "/directory_items.json?page=1"
```

but when I added that some logic to the controller it comes out as

```
/directory_items?format=json&page=1
```

(which is actually how I expect it to work based on how you pass in the
format param). Anyways, because I couldn't figure out how to pass a
format to the `_path` helper I just used URI.parse to append `.json`
manually.
2020-08-11 12:43:55 -06:00
..
assets prevent search panel more link from causing horizontal overflow 2020-08-10 22:15:42 -04:00
controllers FIX: Ensure load more directory items has a .json url 2020-08-11 12:43:55 -06:00
helpers FEATURE: Allow users to opt out of automatic dark mode (#10377) 2020-08-06 09:45:37 -04:00
jobs FIX: sync reviewable count when opening the hamburger menu (#10368) 2020-08-07 18:13:02 +02:00
mailers PERF: Replace video and audio links in search blurb while indexing. 2020-08-06 12:25:03 +08:00
models FIX: Include secure media URLs when linking post uploads (#10404) 2020-08-10 17:59:29 +01:00
serializers FEATURE: Group category permissions tab (#10388) 2020-08-10 09:49:05 -05:00
services FEATURE: Allow users to opt out of automatic dark mode (#10377) 2020-08-06 09:45:37 -04:00
views FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00