---
title: "BayWSF"
date: "2025-04-22T13:08:17+00:00"
summary: "Discover the essential requirements for seamless Acquia Web Governance CMS integration with BayWSF. Learn how to generate correct CMS URLs using page elements and settings for efficient content management."
image:
type: "page"
url: "/web-governance/baywsf"
id: "157cf9bb-af09-4ddb-ae73-a7f9762865ac"
---

This page provides the requirements for Web Governance CMS integration to work with BayWSF. ​

Page requirements
-----------------

The `script` element with attribute `data-drupal-selector='drupal-settings-json'`

### Explanation

Inside the `script` element, the JSON must contain the key `currentPath`. The value from the node is used to create the URL of the CMS as shown in the following script:

    <script type="application/json" data-drupal-selector="drupal-settings-json"> {"path":{"baseUrl":"\/","pathPrefix":"nl\/","currentPath":"node\/1",...}} </script>

CMS settings
------------

`base_url` of the CMS

Generated URL
-------------

`#{base_url}/node/#{extracted_node_from_script_current_path}/edit`

### Example

The domain _https://www.rennie.be_ has a `base_url`, which is the CMS URL: _https://prods896urp7.main.acsf.baywsf.com._

Each page contains a specific `"currentPath":"node\/#{number}"` on the `script drupal-settings-json`. 

For example, the _https://www.rennie.be/nl/_ page has `"currentPath":"node\/416"`, which means that the URL for this specific page is _https://prods896urp7.main.acsf.baywsf.com/node/416/edit_.