Sha256: e4ebcb4522dd885f54f47c88680c8f4b61352ac07f2e12c540788fd114729fc1

Contents?: true

Size: 699 Bytes

Versions: 5

Compression:

Stored size: 699 Bytes

Contents

If your solr ids happen to have dots in them, Rails is going interpret the dots as the separator between the file name and the file exension, and your documents won't be displayed on the show view.  In order to fix that you can override the default routes like this:

```ruby
ALLOW_DOTS ||= /[a-zA-Z0-9_.:]+/
MyApp::Application.routes.draw do
  root :to => "catalog#index"
  ...
  resources :catalog, :only => [:show, :update], :constraints => { :id => ALLOW_DOTS, :format => false }
  Blacklight::Routes.new(self, {}).catalog
end
```

you must put the line defining the route with the constraints before you call Blacklight::Routes because the first route that matches is the one that will be used.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-4.9.0 doc/Configuring-rails-routes.md
blacklight-4.8.0 doc/Configuring-rails-routes.md
blacklight-5.9.4 doc/Configuring-rails-routes.md
blacklight-4.7.0 doc/Configuring-rails-routes.md
blacklight-4.7.0.pre1 doc/Configuring-rails-routes.md