Skip to content

Commit

Permalink
Merge pull request #7674 from braze-inc/i18n_fix_redirect_layout
Browse files Browse the repository at this point in the history
fix layout redirect url
  • Loading branch information
josh-mccrowell-braze authored Jul 12, 2024
2 parents 02cbdc6 + 4087490 commit 849b946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _plugins/urlnavmenu_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def build_menu_html(menu_hash,parent_key,level)
end

cur_url = @baseurl + curinfo.url
if curinfo['redirect_to']
if curinfo['redirect_to'] && level == 0
cur_url = curinfo['redirect_to'].gsub!(/^\/docs\//, "#{@baseurl}\/")
end

Expand Down

0 comments on commit 849b946

Please sign in to comment.