BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
Filter by title

Blazor UI: Routing

Blazor has its own routing system and you can use it in your applications. ABP doesn't add any new feature to it, except one small improvement for the modular development.

AbpRouterOptions

Blazor Router component requires to define AdditionalAssemblies when you have components in assemblies/projects other than the main application's entrance assembly. So, if you want to create razor class libraries as ABP modules, you typically want to add the module's assembly to the AdditionalAssemblies. In this case, you need to add your module's assembly to the AbpRouterOptions.

Example

Configure<AbpRouterOptions>(options =>
{
    options.AdditionalAssemblies.Add(typeof(MyBlazorModule).Assembly);
});

Write this code in the ConfigureServices method of your module.

AbpRouterOptions has another property, AppAssembly, which should be the entrance assembly of the application and typically set in the final application's module. If you've created your solution with the application startup template, it is already configured for you.

See Also

Contributors


Last updated: October 14, 2025 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

ABP Community Talks
What’s new with .NET 10 & ABP 10?
20 Nov, 17:00
Online
Watch the Event
ABP Live Webinar
Webinar Calendar Webinar Calendar
Discover
ABP Platform
Register Now
Nov 26
Wednesday,
17:00 UTC
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.