mardi 12 mai 2015

referring HTTPS from HTTP with query params?

I have a static HTTP page which has link with some query string params to my rails app which is HTTPS. But when I click on the link the query params gets dropped and the link takes to the root of the Rails app. While diagnosing what was happening I found that if I take the same url & replace the HTTP in the browser to HTTPS it carries the query string params.

So I was wondering if I could do something on the rails app side so that it takes me to the right page inside the app without dropping the query string params that the app referring-link in the static HTTP page has.

Note: The static page is completely outside of the Rails app which I don't have control over.

Aucun commentaire:

Enregistrer un commentaire