#1509 - Fixed problem with friendly urls

Signed-off-by: Carlos Escribano Rey <carlos@markhaus.com>