Skip to content

Commit

Permalink
Redirect to API URL instead, but use new URL parameter to redirect ba…
Browse files Browse the repository at this point in the history
…ck to the UI by default (#2)
  • Loading branch information
ml-evs authored Aug 28, 2024
1 parent ce30e07 commit ca5d4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/nginx-provider.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% for provider in providers %}
location ~ /{{ provider['id'] }}:(.+)$ {
return 301 {{ provider['canonical_url'] }}/items/$1;
return 301 {{ provider['api_url'] }}/items/$1?redirect-to-ui=true;
}

{% endfor %}

0 comments on commit ca5d4ee

Please sign in to comment.