Stored URI/URL should not include Domain and Protocol portion
Stored URI/URL should not include Domain and Protocol portion
| Issue ID: | 613 |
| Issue Category: | enhancement |
| Component: | core |
| Priority: | minor |
| Status: | active |
| Assigned: | evan |
| Milestone: | 1.0 |
I just moved a Laconica instance and it meant having to run UPDATE REPLACE Queries on 4 tables
(uri on avatar, uri on notice, profileurl on profile and uri on user)
May I suggest removing the protocol and domain portions of these stored URI/URL and where needed construct them in the UI using the stored server name from config.php. This makes portability much easier.
(for example from staging to live...)

Updates
#1
Changing the base path while on the same hostname currently requires the same tweaks; I'd tend to recommend avoiding storing full paths if possible, if we can just store the bits that come after our base URL.
You can also subscribe to the
RSS feed for updates to this issue.