116
Views
2
Comments
Solved
Screen URL pattern with input param in the middle of the URL

Hi all,

I have created a Reactive web app and am trying to figure out how OutSystems handles URL's.

Using the options `Custom URL` and `URL Structure` we can create an URL pattern like:
- /service/details/{CompanyId}(/{ItemId})

Is it possible to change the pattern so that it becomes:

- /{CompanyId} /service/details(/{ItemId}) 


2025-06-01 02-51-51
YASH PAL
Solution

Hi appurgy

It's not possible at all. Because you can't have input parameters before the module name and screen name. Programmatically it's not possible.

Rest please give a reason why you want to change the path.

Thank you hope this will help.

UserImage.jpg
Bart @ Appurgy

Alright, that is as I concluded.

You would want a logical/readable URL where the path can resemble a certain hierarchy.
E.g. 

So taking the input params `company` and `<product>` we can create the following URL:
    `<company>/<product>`

Now typically I would want the URL for the details to be:
    `<company>/<product>/details`
Which in outsystems would become something like the following:
    `/details/<company>/<product>`
or:
    `product-details/<company>/<product>` 

Unless, somebody can suggest a better approach?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.