Skip to content

Commit

Permalink
Add a temporary fix that redirects to search
Browse files Browse the repository at this point in the history
On Richie stack add a temporary fix that on nginx level redirects to
course search preserving the query parameters.
GN-996
openfun/richie#1810
  • Loading branch information
igobranco committed Oct 24, 2022
1 parent 027c981 commit 76cb8ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/richie_deploy/templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,16 @@ http {
{% endfor %}
{% endif %}

# Temporary fix with a temporary redirect to fix redirect to search page that lost query
# parameters. Remove this when we have a fix for:
# https://github.com/openfun/richie/issues/1810
location = /pt/curso/ {
return 307 /pt/cursos/$is_args$args;
}
location = /en/course/ {
return 307 /en/courses/$is_args$args;
}

# Any other URL, should be proxied
location / {
{% if richie_nginx_auth_basic_enable is defined and richie_nginx_auth_basic_enable %}
Expand Down

0 comments on commit 76cb8ef

Please sign in to comment.