XF 2.1 Full Route Filters list

El Porcharo

Well-known member
I'm spending time in translating the XF locale for my country, in order to furtherly "translate" into a more common language for my niche, as it is made of people that mostly never seen/used a forum in their whole life. 🤪

What I'm wanting to do also, is doing the same thing with URLs, not only to shorten'em up but also to make it more comprehensible by my users.

I see there are quite a lot of links that, despite I've set many of them, are still with their original structure.
So to make sure none of them would remain out, I was wondering if there is a list of all routes generated by the forum code, so I can make it all shorter and clearer without forgetting any of it

Thanks for your time, 🙂
Marco
 
This is a list of the default public routes we use in the software (and some add-on ones) which you can see in the database in the xf_route table:

The concept of a sub_name might seem confusing slightly but essentially we have some separation either into different controllers or within the same controller in order to make URLs look or behave differently. So you may want to change the account route but you would also want a route filter for account/connected-accounts and account/two-step too.

route_prefixsub_name
account
accountconnected-accounts
accounttwo-step
account-confirmation
approval-queue
attachments
categories
conversations
conversationsmessages
edit-history
editor
email-stop
find-new
find-threads
forums
forumsnew-posts
goto
help
index
inline-mod
link-forums
login
logout
lost-password
media
mediaalbum-comments
mediaalbum-ratings
mediaalbums
mediaalbums/dialog
mediaalbums/users
mediacategories
mediacomments
mediadialog
mediamedia-comments
mediamedia-ratings
mediausers
members
membersfollowers
membersfollowing
memberslist
misc
online
pages
posts
profile-posts
profile-postscomments
purchase
recent-activity
register
registerconnected-accounts
reports
resources
resourcesauthors
resourcescategories
resourcesreview
resourcesupdate
resourcesversion
search
spam-cleaner
tags
threads
threadspost
warnings
watched
whats-new
whats-newmedia
whats-newmedia-comments
whats-newposts
whats-newprofile-posts
whats-newresources

You may also have add-ons installed which are different routes but you would have to find them yourself or look in the database.
 
Chris, I'm having this question too.

So, i can use the route system to translate all the "links" of XF?

So, in my language, in the route system, i need, for example, do this:

/account to /conta
/account/two-step to /conta/dois-pass

And go on with all the links that i want to "translate"?
 
Yep, just replace
account/
with
[FONT=verdana]conta/
and
account/two-step
with[/FONT]
conta/dois-pass
and so on without the slash at the beginning.

Chris one more question please: :)
Once replaced
forums/
with
home/
any further URLs would be for example

home/section-1/ home/section-2/ home/section-3/
and so on.

What is the best practice for not overloading the server between routing
forums/section-1/
to
/section-1/
and
home/section-1/
to
/section-1/
❓

I assume the first one is the better way, isn't it? (we just have to consider that home/ was formus/ while adding new URLs routing 😅 )
 
That's pretty much it

Bumping this thread up again, as I'm adding more filters time by time and I've found something I cannot address as I want.

On threads and forums that are split in multiple pages, there is a part of the URL which refers to the page number (like /page-2/ and so on...).
Is it possible to set a filter for this as well or not? I'm trying to at least set a translation instead.

:)
 
Back
Top Bottom