[BUG] / [FEATURE] Convert "Business Profiles" to simple Single-Page App, Give-up SEO for Now, and Change URL Scheme to Reference API ID instead of AirTable ID #374
Labels
bug
Something isn't working
NOTE: This issue would replace #372 and #371
NOTE: All API URLs which I pasted below will not work without an ?apiKey= parameter appended to them. You can obtain your own API key instantly by visiting and registering at: https://api.rebuildblackbusiness.com and from there you can actually read the API doc from which you can explore the various API endpoints.
The pre-generation of pages was done to promote SEO. But we never did quite get it to work properly as described in [BUG] Fix SEO on Business Profile Pages #372 -- So as of right now, we literally have no vested interest in SEO.
The pre-generation of pages:
the pre-generated pages are happening by loading data from AirTable and that’s going to continue to hurt us because it forces us to reference the AirTable ID in the urls instead of referencing a business’s actual API ID from the API database which is what the developer API does .
In the end we need to remove our dependence on AirTable. It needs to remain at arm’s length.
What I propose:
Convert the business profile to a full SPA loading ALL of its data from the API, not AirTable. The single page app should only interact with the API. It should not touch AirTable. As such, no more pre generation of pages will be needed.
change the business profile url to be anchored against the integer API ID instead of the AirTable ID. Keep the "textual part" of the slugs the same: Here's what I mean by example:
Once the business profile url scheme has been updated, and the profile page works correctly for any ID, be sure to update links in the search results pages.
Benefits:
The text was updated successfully, but these errors were encountered: