Skip to content

Commit

Permalink
Fix animated logo on French "En savoir plus" subpages
Browse files Browse the repository at this point in the history
The relative path to the logo was not corrected on index.html pages
which are fourth level directory deep.
  • Loading branch information
anthonyfok committed May 7, 2023
1 parent 7a5c535 commit 91c57b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/init-db-and-generate-static-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ fixup_static_site() {
sed -i 's#data-anim-path="\.\/site#data-anim-path="../../site#' "${i}"
sed -i 's#data-anim-path="http://riskprofiler\.demo/site#data-anim-path="../../site#' "${i}"
done
for i in */*/*/index.html; do
sed -i 's#data-anim-path="\.\/site#data-anim-path="../../../site#' "${i}"
sed -i 's#data-anim-path="http://riskprofiler\.demo/site#data-anim-path="../../../site#' "${i}"
done

# Change PHP file paths to relative paths to allow serving from subdirectories
sed -E -i "s#url(:| =) ('/site.*settings\.url)#url\1 ((plugin_settings.lang == 'fr') ? '../..' : '..') + \2#" \
Expand Down

0 comments on commit 91c57b7

Please sign in to comment.