Fix redirection issue with urlRelativeSubPath

Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>