Optimized ResourceDetailView's constructor a bit

Removed conditionals in favor of filter, array concat and join to build route path.