<script type="text/javascript">
    $( document ).ready(function(){
        $('.selectpicker').selectpicker();
        $('#dbVersionPicker').selectpicker('val', '{{ dbversion }}');
        $('#dbVersionPicker').on('changed.bs.select', function () {
            var route = '{{ path(app.request.get('_route'), {'dbversion': 'dbversion'}) }}';
            route = route.replace('dbversion', $('#dbVersionPicker').val());
            window.location.href = route;
        });
    });
</script>

<script type="text/javascript">
    $( document ).ready(function(){
        $('.selectpicker').selectpicker();
        $('#dbVersionPicker').selectpicker('val', '{{ dbversion }}');
        $('#dbVersionPicker').on('changed.bs.select', function () {
            {% set previous_params = app.request.get('_route_params') %}
            var route = '{{ path(app.request.get('_route'), previous_params|merge({'dbversion': 'dbversion'})) }}';
            route = route.replace('dbversion', $('#dbVersionPicker').val());
            window.location.href = route;
        });
    });
</script>

Make navigation dbversion more robust
Make navigation dbversion more robust
