Skip to content

Commit

Permalink
Include "href" when serching for links to root in push-new-version.sh…
Browse files Browse the repository at this point in the history
… script
  • Loading branch information
juancarmore committed Jan 2, 2025
1 parent ddc4a0f commit 411ec86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom-versioning/push-new-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ for NVP in "${NON_VERSIONED_PAGES[@]}"; do
done

# Links to index.html
grep -Erl "\"(\.\./)*\.\.\"" $ALL_PREFIXED_VP | xargs sed -i "s|\"\(\.\./\)*\.\.\"|\"/\"|g" || true
grep -Erl "href=\"(\.\./)*\.\.\"" $ALL_PREFIXED_VP | xargs sed -i "s|href=\"\(\.\./\)*\.\.\"|href=\"/\"|g" || true

# Remove version from NVP in sitemap.xml
for NVP in "${NON_VERSIONED_PAGES[@]}"; do
Expand Down

0 comments on commit 411ec86

Please sign in to comment.