How `Hugo` handles aliases?

How hugo handles aliases? How the pages are directed from old one to new?

Thanks,
NkS

Why don’t you try and have a look? My guess you will find the answer in the source alias html.

The answer is in
https://github.com/spf13/hugo/blob/master/target/htmlredirect.go

Specifically lines 13 & 14

Thank you @spf13 @bjornerik.

-NkS