fix problem with store code in url

If the store has the storecode in the url the hard coded URL ends in 404, this PR fixes the problem