By Mist on Friday, 21 August 2015
Posted in General Issues
Replies 2
Likes 0
Views 680
Votes 0
Hi guys, i am testing the dating search module and it works great.

Is there any way to have a nice SEF url for the search results ?

Currently for the search results this string is appended to url

?conditions[]=mike&criterias[]=JOOMLA_FULLNAME|joomla_fullname&datakeys[]=name&operators[]=contain&frmDistance=&criterias[]=ADDRESS|address&datakeys[]=distance&operators[]=lessequal&frmAddress=&frmLatitude=&frmLongitude=&conditions[]=&592bfe019766f60a6fc38058e01e6f6c=1&Itemid=2141&option=com_easysocial&view=users&layout=search


This is really ugly
While variables and such are often used in search URLs, that example is rather lengthy. One idea is for the search to operate in a exact order just like how SQL queries use the Insert Into method. Theoretically it could be:

site/search?data=name/address/coordinates/distance

Here's an example (and no I don't live in New York ):

site/search?data=Josh-Lewis/New-York-City/40.794346,-73.952215/50-miles

Another example:
site/search/Josh-Lewis,New-York-City@40.794346,-73.952215,50-miles

Google is able to pull off these kinds of URL's as seen here: https://www.google.com/maps/place/New+York,+NY/@40.7033127,-73.979681,11z
And no, Google doesn't just do this for famous places. Here is a link to one of the most remove places in the United States:
https://www.google.com/maps/@48.7741568,-121.2972805,15.5z

The concept of using @ operators with commas in the URL is actually pretty cool and makes for simpler link sharing when dealing with lots of parameters.
·
Saturday, 22 August 2015 02:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this Josh. Appreciate your insights on this.
·
Sunday, 06 September 2015 15:39
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post