How to create custom URL structure?

Hi all, continuing the discussion from URL path hierarchy management:

I’m trying to add /putting/ in the URL drills.golf/drill/1111 such that it ends up being drills.golf/drill/putting/1111

Drill is the page, “putting” is an option set of the drill that I’m trying to add to the URL. In the topic I shared above, there is mention of how to add URL by manually writing the URL “putting” between the home URL and dynamic data. But I am trying to send data to “Drill” page, add “option set” and then include dynamic data in URL.

I’m trying to do this to improve my SEO, my audience is searching for keywords from my option set, such as “putting, short game, chipping, driving range” etc, and if I could display that drill category in the URL, I think it would mean better placement in the search results.

Any advice on how to achieve that URL structure?

You can do something like this:

In this example, I used static text just to illustrate, but of course, you can use your Option Sets instead.

Later, you can retrieve the data from the URL just like you do with parameters, but using the path segments as list.

RESULT

Then you can use these paths to create any kind of condition you want.

Hey, thank you for taking the time to do this.

I tried but when page content type is set to “Drill” I cannot set arbitrary text. It is expecting a drill

I also tried sending parameters, but it appends ?param=value to the end of the url, not what I was looking for.

I have reusable element on the page “Drill” that needs the page type to be set to “Drill”, so I can’t use open external url either and build a link in the custom url. It wouldn’t read the drill.

In this case, you need to leave the page’s Type of content blank and use the data passed through the path to populate the page. For example, you can create a parent group that contains all the page’s content, and that group should have the Type of content set to Drill. The Data Source for that group should be pulled from the path. Alternatively, you can use another method to pass the data to that group.