refinerycms-blog
refinerycms-blog copied to clipboard
Fix error when clicking on 'save & continue' then changing locale
I noticed a bug when using different locales and saving using the "Save & continue editing" button: the URL of the locales switch picker got undefined and an error occur.
The fix is to apply the same behavior as Pages in Refinery using the JS function 'submit_and_continue' in admin.js.erb that changes the locale switch picker URL. If we send back the correct URL parameters after a Post update, it works correctly.
Thanks for your contribution!
Could you add a test to confirm your bugfix?
@bricesanchez Sure, no problem. It does require javascript in the capybara test to run correctly. Which js driver do you run in your CI environment?
@cedrtang we're using the Poltergeist gem, so phantomjs
We are now using Chrome headless :D https://github.com/refinery/refinerycms/pull/3394
Hi, I'm having this problem. Include the blog today and I came across this URL failure

By hovering over the "Producto" menu option, the link is wrong. Even clicking "save" and not "save & continue" to save the page the error continues.