greenlight icon indicating copy to clipboard operation
greenlight copied to clipboard

404 Redirect Error after SignIn by installing greenlight in an extra folder

Open beamsz opened this issue 9 months ago • 2 comments

Hello,

I've problems with Greenlight v.3.4.* by redirecting after signin on the joincard. I get an 404 Error. I've installed Greenlight in an extrafolder. Example: https://*.com/extrafolder/

To reproduce:

Visite as a normal participant from the meeting. Visit the https://.com/extrafolder/rooms/xxx-xxx-xxx-xxx/join page in a browser tab. Click on "Sign In" redirect to: https://.com/extrafolder/extrafolder/signin?location=%2Fextrafolder%2Frooms%2Fxxx-xxx-xxx-xxx%2Fjoin "Sign In" GET Error 404 because i will redirect to: https://*.com/extrafolder/extrafolder/rooms/xxx-xxx-xxx-xxx/join

I think the problem came from the "Sign In" - Button it is a path problem!

Thanks for your fantastic frontend.

beamsz avatar Mar 12 '25 18:03 beamsz

u r right. This is an issue. How i have fixed this is trimming down the url. U can write a simple regex to eliminate your extra /extraFolder

U can get ur regex from chatgpt...

I hope this will fix ur issue

rautniraj avatar Mar 13 '25 04:03 rautniraj

I'm not sure if it help to add a location block to the webserver's configuration to rewrite the location via a regular expression. I assume that the query ?location=%2Fextrafolder... is processed by the application and not by the webserver. Therefore a rewrite rule never matches.

Maybe it is caused by the way the signin URL is constructed. It uses the path as a query parameter. If the RELATIVE_ROOT_URL is other than / the path will alwys be inserted twice.

Could a Dev confirm if this is a problem with the application rather than with the webserver?

kidhab avatar Mar 25 '25 15:03 kidhab

fixed in #6099

rautniraj avatar Jul 06 '25 17:07 rautniraj