Trongate Website Homepage

Automatic URL Routing

Trongate's URL routing system is designed to intuitively map URLs to specific application components based on a straightforward set of rules. This design allows URLs to directly influence which modules and methods are executed, streamlining the user navigation process.

Here are the rules that Trongate follows when attempting to automatically map website URLs to modules, classes and methods:

For example, consider the following URL:


https://example.com/members/profile/88

A URL that is constructed in this manner would:

  1. Load the 'members' module and instantiate the 'members' class.
  2. Invoke the 'profile' method.
  3. Pass the number '88' to the 'profile' method as an argument.

This segmentation method ensures that URL paths are not only easy to understand but also maintain a clean and efficient architecture for developers and users alike. It allows for flexible yet structured access to different parts of the application, supporting a wide range of functionalities from simple displays to complex data manipulation.

Trongate's automatic URL routing mechanism, as outlined above, may be superseded by other routing rules under certain conditions. This includes scenarios involving the Trongate API Manager or when custom URL routing configurations are activated.