Upgrading from DD4T to DXA. our website by default will have extensions ex(http://www.mysite.com/index.html) but By default DXA resolves Component Links in Rich Text field and Component Link fields without Page extension(.html) but in my application we need the extension. Please help me get the Page url with extension.
In DXA 2.0, using the new R2 Data Model and Model Service, link resolving is done in the Model Service.
The Model Service uses the following class for this purpose: https://github.com/sdl/dxa-web-application-java/blob/master/dxa-framework/dxa-common/src/main/java/com/sdl/webapp/tridion/linking/AbstractLinkResolver.java
Note that removal of file extension is configurable through setting