discourse/app
Osama Sayegh 7d01c5de1a
FIX: apply defaults constraints to routes format (#7890)
This fixes the problem where if a route ends with a dynamic segment and the segment contains a period e.g. `my.name`, `name` is interpreted as the format. This applies a default format constraints `/(json|html)/` on all routes. If you'd like a route to have a different format constraints, you can do something like this:

```ruby
get "your-route" => "your_controlller#method", constraints: { format: /(rss|xml)/ }

#or
get "your-route" => "your_controlller#method", constraints: { format: :xml }
```
2019-07-15 21:55:11 +03:00
..
assets FEATURE: Allow customization of robots.txt (#7884) 2019-07-15 20:47:44 +03:00
controllers FIX: apply defaults constraints to routes format (#7890) 2019-07-15 21:55:11 +03:00
helpers FEATURE: show login and signup button on no-ember layout (#7867) 2019-07-09 04:51:19 +05:30
jobs Revert "FEATURE: admin/user exports are compressed using the zip format (#7784)" 2019-07-10 11:38:51 -03:00
mailers SECURITY: Strip HTML from invite emails 2019-07-05 14:57:11 -04:00
models FIX: Ensure suppressed categories do not produce any featured topics. (#7863) 2019-07-15 17:32:03 +03:00
serializers FEATURE: opt-in guidance on topics for users without access (#7852) 2019-07-04 10:12:39 +02:00
services FIX: Use default locale for flag reasons 2019-07-12 12:04:23 +02:00
views DEV: Debundle plugin javascript assets and don't load if disabled (#7566) 2019-07-15 20:22:54 +05:30