jeawin-astro 3.0.96 → 3.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/scripts/util.js +4 -4
package/package.json
CHANGED
package/src/scripts/util.js
CHANGED
|
@@ -206,13 +206,13 @@ export function render_url(url, base = '', queryObj = null, suffix = '.html') {
|
|
|
206
206
|
str = url;
|
|
207
207
|
} else {
|
|
208
208
|
if (url == '/') {
|
|
209
|
-
str = '
|
|
209
|
+
str = `${base || ''}/`;
|
|
210
210
|
} else {
|
|
211
|
-
str =
|
|
211
|
+
str = `${base || ''}/${_.trimStart(url.replaceAll(suffix, ''), '/')}${suffix}`;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
} else {
|
|
215
|
-
str = '
|
|
215
|
+
str = `${base || ''}/`;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
let queryStr = '';
|
|
@@ -229,7 +229,7 @@ export function render_url(url, base = '', queryObj = null, suffix = '.html') {
|
|
|
229
229
|
queryStr = new_params.size ? `?${new_params.toString()}` : '';
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
return `${
|
|
232
|
+
return `${str}${queryStr}`;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
/**
|