Search Issue Tracker

By Design

Votes

0

Found in

2018.2.15f1

Issue ID

1111743

Regression

No

[WebGL] Deployed app is unable to redirect to another URL when the player is embedded into Heroku with Ruby On Rails

WebGL

-

How to reproduce:
1. Set up a Heroku account.
2. Download Ruby (programming language)
3. Download Ruby on Rails
4. Set up a pipeline on Heroku and add an app to that pipeline
5. Push app to Heroku
5. Deploy the app (Instructions found under the `deploy` tab of your app)
6. Migrate the database in the terminal using 'heroku run rake db:migrate'
7. Open logs and open app
8. Enter an email address and enter password 3 times and notice that page does not redirect
9. Go to logs and search for 'Redirect'. If there, you have encountered the error.
10. To reproduce continuously, clear database with 'heroku pg:reset DATABASE_URL --confirm NAME_OF_THE_APP' and re-migrate followed by a restart of Heroku 'heroku restart'

Expected results: The page redirects and loads another URL
Actual results: Redirection is attempted, but URL load fails and Player continues

Reproducible with: 2018.2.15f1

  1. Resolution Note (2021.1.X):

    Ruby `Redirect_to` command must be called before any HTTP content has been sent to the client. Use window.location JavaScript API to implement a redirect after the Unity page has been loaded.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.