XF 2.2 Optional route prefix

stromb0li

Active member
I'm hoping this is my last question for awhile, really apologize for all the questions.

I have two URLs:
and

Right now my route filter is: :int<note_id>/section/:int<section_id>/entry/:int<entry_id>

This works well for the first URL where I need details of the note and section, but for the second url, where that information is now redundant since entry is a unique identifier, I'm unable to match the URL since it's looking for /section/.

Is there a way to make /section/ optional like the parameters, so I can match both URL scenarios?

Cheers!
 
Top Bottom