Open joffemd opened 9 years ago
I am not sure if this requirement is necessary at the moment.
A user can directly access the CITY OF TUSTIN page with the URL, can copy the link, send it by email, create a browser bookmark etc. The primary goal is achieved. The user was not supposed to type URLs by hands. He does not know our naming conventions. I think he rarely if ever will try to type it.
Technically this is a matter of changing _id for a record. This requires no coding. I'm just not sure if we need this.
This was a direct request from Ed, the client. He does not like sending URLs that are not "human readable".
Then I think the easiest way to accomplish that is to change values of _id field in govs table.
The change posted on 21 July is not correct. To get to Tustin's page, I now have to type: http://govwiki.us/#4104/CITY_OF_TUSTIN
It should be: http://govwiki.us/#Tustin
Don't use _id and use alt_name rather than gov_name.
Hello Marc,
Yes, we've got your idea about the ID, however, I should say that in the current instance of the database it is not quite simple.
The city names aren't binded to the IDs in the database and we have to link it. Thus, it is the only way we can do for now. To get rid of the ids in the url at all, we have to change the database structure because we can't pull the data from the database by the city's name.
I should notice that you can see the name of city if search by the site but this data is stored in the json file, not in the db.
We've quoted the relations in the db as a part of the next phase.
Please let me know if yo have any questions.
Best Regards
Igor
we can't pull the data from the database by the city's name.
In this case, I mean that the Elected Oficcials data is binded to the ID and we have to use it in url now.
The new way of the links for the demo. Deadline is the end of the current week.
http://govwiki.us#Tustin is accessible by the direct link and at the same time Tustin City is accessible by the old link http://govwiki.us/#4104 (no city name is needed)
By the old link there will be available all the inner tabs and links.. The new link should show the city page only the inner links can be not accesible.
Previously we implemented client side routing so that users could go directly to a page of interest.
For example, a user can directly access the CITY OF TUSTIN page with the URL http://govwiki.us/#4104.
This is not optimal because users don't know the numeric IDs we have assigned. We have stored short names for most important California governments in the alt_name field of the govs table. We would like routing to use these names. Thus CITY OF TUSTIN should be accessible with the URL: http://govwiki.us/#Tustin.
Many of the short names contain blank spaces. I request that these be replaced with underscores in the URL. For example, we would use the following for TUSTIN UNIFIED SCHOOL DISTRICT (id 7634). http://govwiki.us/#Tustin_Unified