vrish88 / sinatra_cyclist

Cycle through Sinatra routes at a regular duration.
MIT License
94 stars 18 forks source link

Ensure /_cycle passes any other params on redirect #11

Open thoughtcroft opened 8 years ago

thoughtcroft commented 8 years ago

I want to be able to pass query params to a dashboard so I can for example modify the layout based on the device (rather than have a separate dashboard for each one). However, cycling through the boards using this gem - which is really useful - breaks this since params are not persisted across each request.

This change fixes that so that for example /_cycle?screen=tv will pass the screen param in each dashboard redirect.