Sometimes you type a hash-bang URL too fast, bang first.
https://artsy.net/!#/log_in. Rails will receive
/! as the file path, resulting in a 404, File Not Found error. The part of the URL after the hash is a position within the page and is never sent to the web server.
It's actually pretty easy to handle this scenario and redirect to the corresponding hash-bang URL.
The most straightforward way is to create a file called
!.html in your
1 2 3 4 5 6 7 8 9 10 11 12 13 14
You can also do this inside a controller with a view or layout. Start by trapping the URL in your
1 2 3 4
1 2 3 4 5