git commit -m 'Issue #3316979: Fix Content Sync issue
Closes #3316979
If Content Sync URL is set in the setting this will now do the following:
- Add a hidden form field
- Set the hidden form field to true if the preview button is clicked
- Redirect the node form by adding a submit handler and including the correct content sync URL as a query param (preserving the destination parameter)
- If the correct parameter is in the URL this will pass a value to the open_preview_window JS file which will open up the correct content sync URL
- The URL in the browser window is then updated so the preview window is not opened again on refresh
If the Content Sync URL is not set the open preview window will work the same as it did before.