Disclaimer: I am a consultant at Amazon Web Services, and this is my personal blog. The opinions expressed here are solely mine and do not reflect the views of Amazon Web Services (AWS). Any statements made should not be considered official endorsements or statements by AWS.
To get previous & next page URLs in Umbraco, you can use the below piece of code in your razor view.
@if(CurrentPage.Previous() != null){
<a href="@CurrentPage.Previous().Url">Previous</a>
}
@if(CurrentPage.Next() != null){
<a href="@CurrentPage.Next().Url">Next</a>
}