Skip to content

Commit ca1e2f4

Browse files
fix[faustwp]: (#2043) update settings page documentation links (#2319)
The FaustWP settings page contains 8 links to faustjs.org using legacy URL patterns (/guide/*, /docs/next/*, /docs/faustwp/*) that rely on redirects to reach the current documentation. Update all links to use the current URL structure: - /docs/getting-started → /docs/how-to/basic-setup - /docs/next/getting-started → /docs/how-to/basic-setup - /docs/faustwp/settings → /docs/how-to/basic-setup - /guide/how-to-setup-post-and-page-previews → /docs/how-to/post-previews - /guide/how-to-use-the-faust-example-project → /docs/tutorial/learn-faust - /tutorial/get-started-with-faust → /docs/tutorial/learn-faust - /guide/how-to-use-apollo-in-faust → /docs/how-to/query-data-in-the-browser - /guide/how-to-handle-authentication → /docs/how-to/authentication Closes #2043 Co-authored-by: latenighthackathon <latenighthackathon@users.noreply.github.com>
1 parent c4b732d commit ca1e2f4

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@faustwp/wordpress-plugin": patch
3+
---
4+
5+
fix[faustwp]: update documentation links in settings page to use current URL structure

plugins/faustwp/includes/settings/callbacks.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function frontend_url_notice() {
4444
printf(
4545
/* translators: Link text */
4646
esc_html__( 'See the %1$s Getting Started Documentation%2$s for more details.', 'faustwp' ),
47-
'<a href="https://faustjs.org/docs/getting-started" target="_blank" rel="noopener noreferrer">',
47+
'<a href="https://faustjs.org/docs/how-to/basic-setup" target="_blank" rel="noopener noreferrer">',
4848
'</a>'
4949
);
5050
?>
@@ -396,7 +396,7 @@ function confirm_regenerate_key( event ) {
396396
printf(
397397
/* translators: %s: Documentation URL. */
398398
wp_kses_post( __( 'This key is used to enable <a href="%s" target="_blank" rel="noopener noreferrer">headless post previews</a> and make authenticated GraphQL requests for schema generation.', 'faustwp' ) ),
399-
'https://faustjs.org/guide/how-to-setup-post-and-page-previews'
399+
'https://faustjs.org/docs/how-to/post-previews'
400400
);
401401
?>
402402
</p>
@@ -442,7 +442,7 @@ function display_enable_disable_fields() {
442442
printf(
443443
/* translators: %s: Documentation URL. */
444444
wp_kses_post( __( 'Learn more about <a href="%s" target="_blank" rel="noopener noreferrer">features</a>.', 'faustwp' ) ),
445-
'https://faustjs.org/docs/faustwp/settings'
445+
'https://faustjs.org/docs/how-to/basic-setup'
446446
);
447447
?>
448448
</p>

plugins/faustwp/includes/settings/views/headless-settings.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,18 @@
7272
<?php endif; ?>
7373
<section>
7474
<h4><?php esc_html_e( 'Create Your Headless App', 'faustwp' ); ?></h4>
75-
<p><a href="https://faustjs.org/docs/next/getting-started" target="_blank" rel="noopener noreferrer">Follow our quick start guide</a>.</p>
75+
<p><a href="https://faustjs.org/docs/how-to/basic-setup" target="_blank" rel="noopener noreferrer">Follow our quick start guide</a>.</p>
7676
</section>
7777
</div>
7878
<div class="box docs">
7979
<h3>Faust.js Documentation</h3>
8080
<section>
8181
<ul>
82-
<li><a href="https://faustjs.org/guide/how-to-use-the-faust-example-project" target="_blank" rel="noopener noreferrer">In-depth Tutorial</a></li>
83-
<li><a href="https://faustjs.org/tutorial/get-started-with-faust" target="_blank" rel="noopener noreferrer">Quick Start</a></li>
84-
<li><a href="https://faustjs.org/guide/how-to-use-apollo-in-faust" target="_blank" rel="noopener noreferrer">Fetching Data</a></li>
85-
<li><a href="https://faustjs.org/guide/how-to-setup-post-and-page-previews" target="_blank" rel="noopener noreferrer">Previews</a></li>
86-
<li><a href="https://faustjs.org/guide/how-to-handle-authentication" target="_blank" rel="noopener noreferrer">Authentication</a></li>
82+
<li><a href="https://faustjs.org/docs/tutorial/learn-faust" target="_blank" rel="noopener noreferrer">In-depth Tutorial</a></li>
83+
<li><a href="https://faustjs.org/docs/tutorial/learn-faust" target="_blank" rel="noopener noreferrer">Quick Start</a></li>
84+
<li><a href="https://faustjs.org/docs/how-to/query-data-in-the-browser" target="_blank" rel="noopener noreferrer">Fetching Data</a></li>
85+
<li><a href="https://faustjs.org/docs/how-to/post-previews" target="_blank" rel="noopener noreferrer">Previews</a></li>
86+
<li><a href="https://faustjs.org/docs/how-to/authentication" target="_blank" rel="noopener noreferrer">Authentication</a></li>
8787
</ul>
8888
<p><a class="button-primary" href="https://github.com/wpengine/faustjs/" target="_blank" rel="noopener noreferrer">Faust on GitHub</a></p>
8989
</section>

0 commit comments

Comments
 (0)