Fix url generation error on hook invalid create
Merge pull request #6708 from skv-headless/fix_url_error_on_invalid_hook

Fix url generation error on hook invalid create