How do I prevent accessing a page with /node/37 directly when an alias has been set? I work with Drupal 8.

I've set an url alias for my page to /nice-url.
When I acces it via http://mypage.com/nice-url everything works fine.

The problem is, this page is still accessable via http://mypage.com/node/37 - it's bad for SEO and it produces some mess.

Is it possible to remove that http://mypage.com/node/37 page? I mean I want the content of that page to accessable only via http://mypage.com/nice-url.
You don't want to deny access to it but simply redirect to the aliased URL.

That feature is provided by the Redirect module and there's also a core issue to make core do that automatically.