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...)

Legacy Data

This issue was migrated from another tracking system. The legacy data at time of import is provided below as a reference.

Ticket ID: 
613
Reported by: 
bopuc
Owner: 
evan
Status: 
new
Type: 
enhancement
Component: 
core
Priority: 
4
Version: 
undefined
Milestone: 
1.0

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.

Login or Register to modify this issue, or to receive updates by email.

You can also subscribe to the RSS feed for updates to this issue.