Skip to content
Permalink
Browse files

Fix get_menu

  • Loading branch information
jochenklar committed Mar 24, 2020
1 parent e0d1c8a commit e07d7d50c598d3129a53fd3f262b1c6621d8581f
Showing with 1 addition and 1 deletion.
  1. +1 −1 daiquiri/wordpress/utils.py
@@ -57,7 +57,7 @@ def get_menu(request, menu_name):
except IOError:
return ''
else:
menu_url = settings.BASE_URL + settings.WORDPRESS_URL + 'wp-content/menus/%s.html' % menu_name
menu_url = settings.BASE_URL.rstrip('/') + settings.WORDPRESS_URL + 'wp-content/menus/%s.html' % menu_name
absolute_menu_url = request.build_absolute_uri(menu_url)

response = requests.get(absolute_menu_url)

0 comments on commit e07d7d5

Please sign in to comment.
You can’t perform that action at this time.