• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Answered Any way to build 'Friendly URLs' with LD filter "links"?

frm

New Member
AMS Premium
CAS Premium
EMS Early Adopter
IMS Premium
LD Premium
RMS Premium
SC Premium
I noticed the filter system uses variables in the URL like /directory/?has_comments=1 and was trying to make a friendly URL with this to test before creating my own "filters" (not accessible by the filter drop-down).

I've tried this route filter:
1745374617031.png

Then something like this in Development mode, but it requires a class.

1745375134686.png
 
I noticed the filter system uses variables in the URL like /directory/?has_comments=1
Those are called URL Params and are used with Friendly URLS. Literally 1000s' of Core XF and TRILLIONS in literally every website on the internet.


and was trying to make a friendly URL
The URL itself is already "Friendly". Friendly URLS also use URL PARAMS ;)


I've tried this route filter:
1745374617031.png
Well, of course that Route Filter won't work as directory is NOT A ROUTE in Link Directory.

The main ROUTE for LD is xa-ld

Find Route needs to be an actual ROUTE, not a Route Filter that you created. It explains that in the explain text below the input.

Find route in this case would be xa-ld/action not directory/action

With that said, I do not believe that you can use URL Params. You'd have to ask at XenForo.com if using URL Params in Route Filters is allowed.
 
  • Like
Reactions: frm
Well, of course that Route Filter won't work as directory is NOT A ROUTE in Link Directory.

The main ROUTE for LD is xa-ld

Find Route needs to be an actual ROUTE, not a Route Filter that you created. It explains that in the explain text below the input.

Find route in this case would be xa-ld/action not directory/action
I should have prefaced that I have directory/ as the xd-la/ replacement route (so it should work, ignoring anything said further).

Edit, never mind, it shouldn't work.
Find Route needs to be an actual ROUTE, not a Route Filter that you created. It explains that in the explain text below the input.

But...
With that said, I do not believe that you can use URL Params. You'd have to ask at XenForo.com if using URL Params in Route Filters is allowed.
This answered the question.

Thanks!
 
Last edited:
I should have prefaced that I have directory/ as the xd-la/ replacement route (so it should work, ignoring anything said further).
What part of the of the FIND ROUTE needs to be an ACTUAL ROUTE (ROUTES that are created in the Admin CP by XF or an Addon).

It does not matter if you created a ROUTE FILTER directory/ You STILL have to use xa-ld for every route filter that you want to create for Link Directory!

Example.. in this screen shot, you can see that I've created 2 route filters for RMS.

The first RMS route filter is to change the ROUTE rms to reviews

The 2nd RMS route filter is for an RMS Section, which is the ROUTE rms (as again, it needs to use the actual route) with the Section name hotels and I am replacing it with reviews/accommodations/. If you tried to create the route filter reviews/hotels/ and replace it with reviews/accommodations/ it will not work because reviews is NOT A ROUTE!


Selection_653.png

So no, yours will not work because directory IS NOT A ROUTE in Link Directory!

These are the Public ROUTES for Link Directory. These ROUTES are the only ROUTES that you can create Route Filters with.

Selection_652.png

But hey, waste your time lol
 
Last edited:
  • Agree
Reactions: frm
Back
Top