jeudi 28 février 2019

How Can I get exact same full url as when someone hit to get my Rails app

I wanna get full URL in my rails app when someone hit to get my app. like. someone hit the URL in browser.

http://localhost:3000/ so I can get this in rails app with the help of request.original_url, and this gives me the correct result.

but when someone hit URL like this http://localhost:3000/#log-25 so request.original_urlthis is not giving me exact url which hit exactly it only return http://localhost:3000/ but I need #log-25 this part also.

so how can I get whole URL exactly as hit on the browser please help me.

Aucun commentaire:

Enregistrer un commentaire