EventStore / EventStore.UI

The user interface for Event Store
57 stars 37 forks source link

Bug: If server url is in format host:port/path/ UI will perform redirects without path #256

Open Lougarou opened 4 years ago

Lougarou commented 4 years ago

Reproduction:

  1. Start EventStore v5 server

  2. Start Nginx with config below: server { listen 8080; server_name localhost; location /eventstore/ { proxy_pass http://127.0.0.1:2113/; } }

  3. Access UI at localhost:8080/eventstore/

  4. Login form will have login url as localhost:8080 instead of localhost:8080/eventstore/ <- bug 1

  5. Change login to localhost:8080/eventstore/ and log in

  6. Refresh page, redirect will be done to localhost:8080 which is resolved as not found, redirecting user back to login page <- bug 2

jamiewinder commented 3 years ago

I've just encountered this myself - is there a particular nginx config we should be using for this?