cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue with clean URL regex

eric_miles
Participant

I would love some help with getting a clean url working. The RegEx works fine in a regex tester, but when I apply it to a Clean URL setting for a service to a service under Services & Transactions, it doesn't work at all.

 

Regex: ([0-9]+\-[1-9])

Samples URLs:

/Leases/Details/111111-1/PaymentHistory

/Leases/Details/222222-1/PaymentHistory

/Leases/Details/111111-1/PaymentSchedule

/Leases/Details/111111-1

/Leases/Details/222222-1

Expectation:

/Leases/Details/[some placeholder]

/Leases/Details/[some placeholder]/PaymentHistory

/Leases/Details/[some placeholder]/PaymentSchedule

 

2 REPLIES 2

eric_miles
Participant

BTW, I got this working in the Application setup, but not for Services & Transactions


Julius_Loman
DynaMight Legend
DynaMight Legend

To just remove the ID I'd use this cleanup rule:

\d+-\d+

But you won't have any placeholder in this case, the matching part will be removed.

To achieve your desired naming, you have to use naming rule, I'd use placeholders in this case:


Then the rule would look like this (Placeholder is ### in this case):


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts