handle location hash
Signed-off-by:Guillaume Martigny <guillaume.martigny@gmail.com>