fix route name generation for non standard bundle namespace #376

Fix Issue #376

Source code from @TheCelavi
Pull Request from @pierrick-vignand