javascript - FOSJsRouting: Routing.generate not working on Android devices -
in symfony2 project use routing within event listener. on desktop works fine, not on android devices. how can make code work android?
here comes code:
$('.my-links a').click(function (e) { e.preventdefault(); var setactive = { user: $(this).data('user') }; console.log('on android code gets processed until here, not beyond'); $.get(routing.generate('_my_route', setactive, true)).success(function () { window.location = '{{ url('_some_other_route') }}'; }) })
could because assets not correctly installed in non-dev version ?
php app/console assets:install --symlink web
Comments
Post a Comment