Improvement: change behavior for symlinks to serve up redirects #7

Closed
opened 2021-03-25 10:27:13 -05:00 by bss · 0 comments
Owner

Current behavior: symlinks work how they would at a naive filesystem level, the link is followed and the file rendered, appearing at the requested URL path.

Desired behavior: symlinks yield HTTP redirects.

I always think this is what symlinks do in the engine, and then am surprised when it isn't, but either way I can't think of anything in particular that ties me to the current behavior. I believe with the recent rewrite of the URL path/file path converter, it should be relatively easy to figure out what path to redirect to, but I'm not sure.

This isn't a huge problem but I think it would be possible to eventually deprecate some symlinks, once they've been (permanent) redirecting for e.g. years?

**Current behavior**: symlinks work how they would at a naive filesystem level, the link is followed and the file rendered, appearing at the requested URL path. **Desired behavior**: symlinks yield HTTP redirects. I always think this is what symlinks do in the engine, and then am surprised when it isn't, but either way I can't think of anything in particular that ties me to the current behavior. I believe with the recent rewrite of the URL path/file path converter, it should be relatively easy to figure out what path to redirect to, but I'm not sure. This isn't a huge problem but I think it would be possible to eventually deprecate some symlinks, once they've been (permanent) redirecting for e.g. years?
bss closed this issue 2021-04-15 21:44:20 -05:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bss/incorporeal-cms#7
No description provided.