Skip to content

Commit 3e07843

Browse files
committed
route fix
1 parent f2bb14e commit 3e07843

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/content/docs/zaraz/history/preview-mode.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ sidebar:
66
head:
77
- tag: title
88
content: Preview changes before publishing
9-
109
---
1110

1211
import { DashButton } from "~/components";
@@ -21,7 +20,8 @@ By default, Zaraz is configured to commit changes in real time. To enable previe
2120

2221
1. In the Cloudflare dashboard, go to the **History** page.
2322

24-
<DashButton url="/?to=/:account/history" />
23+
<DashButton url="/?to=/:account/tag-management/history" />
24+
2525
2. Enable **Preview & Publish Workflow**.
2626

2727
You are now working in preview mode. To commit changes and make them live, you will have to select **Publish** on your account.
@@ -32,14 +32,16 @@ Now that you have Zaraz working in preview mode, you can open your website and t
3232

3333
1. In the Cloudflare dashboard, go to the **Settings** page.
3434

35-
<DashButton url="/?to=/:account/tag-management/settings" />
35+
<DashButton url="/?to=/:account/tag-management/settings" />
36+
3637
2. Navigate to the website where you want to test your new settings.
3738
3. Access the browser’s developer tools. For example, to access developer tools in Google Chrome, select **View** > **Developer** > **Developer Tools**.
3839
4. Select the **Console** pane and enter the following command to start Zaraz’s preview mode:
3940

4041
```js
41-
zaraz.preview("<YOUR_DEBUG_KEY>")
42+
zaraz.preview("<YOUR_DEBUG_KEY>");
4243
```
44+
4345
5. Your website will reload along with Zaraz debugger, and Zaraz will use the most recent changes in preview mode.
4446
6. If you are satisfied with your changes, go back to the dashboard and select **Publish** to apply them to all users. If not, use the dashboard to continue adjusting your configuration.
4547

@@ -51,7 +53,8 @@ Disable Preview & Publish mode to work in real time. When you work in real time,
5153

5254
1. In the Cloudflare dashboard, go to the **History** page.
5355

54-
<DashButton url="/?to=/:account/tag-management/history" />
56+
<DashButton url="/?to=/:account/tag-management/history" />
57+
5558
2. Disable **Preview & Publish Workflow**.
5659
3. In the modal, decide if you want to delete all unpublished changes, or if you want to publish any change made in the meantime.
5760

0 commit comments

Comments
 (0)