We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 596a2eb commit d12febcCopy full SHA for d12febc
1 file changed
wp-react-lib/src/util/index.js
@@ -16,6 +16,10 @@ const localReplaceLink = (url, locale) => {
16
if (!pathname.startsWith("/wp/")) {
17
return url; // Not a WordPress path, leave unchanged
18
}
19
+ //ensuring access to media library files
20
+ if (pathname.startsWith("/wp/wp-content")){
21
+ return url
22
+ }
23
24
const afterWp = pathname.slice(3); // remove '/wp'
25
@@ -38,6 +42,7 @@ export const replaceLink = (url, locale) => {
38
42
39
43
40
44
export const replaceHTMLinks = (html, locale) => {
45
+ debugger;
41
46
//console.log("--------- replaceHTMLinks--------------")
47
// console.log(process.env.REACT_APP_WP_HOSTS)
48
0 commit comments