Skip to content

Commit 19c4997

Browse files
committed
fix slash issue
1 parent 98bac62 commit 19c4997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/faustwp/includes/replacement/callbacks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ function content_replacement( ?string $content ) {
7676
}
7777

7878
// get relative link.
79-
$relative = ltrim( str_replace( reset( $is_wp_url ), '', $url ), '/' );
80-
$updated = 'href="' . $frontend_uri . '/' . $relative . '"';
79+
$relative = str_replace( reset( $is_wp_url ), '', $url );
80+
$updated = 'href="' . $frontend_uri . $relative . '"';
8181

8282
$original = $href_links[0][ $i ];
8383
$content = str_replace( $original, $updated, $content );

0 commit comments

Comments
 (0)