Comments (4)
We could add e.g. the letter "s" in front (just picking that one up as it's the first letter of Shaarli). That addresses the - issue for the future, all newly created permalinks will start with an s.
Regarding already existing permalinks, I completely agree should still continue to work. The following should work: keep the old permalink in the database, but display it with an s in front starting today (i.e. if the first character of the permalink is not an "s", add "s" to the HTML code).
People that have the old permalink saved can still access it the old way (maybe not valid, but still working)
People that see the permalink for the first time will see it with an s in front. When a permalink is accessed that couldn't be found in the database, strip the s in front and check if that permalink exists. If so, display the content.
Or this could be implemented the other way around, but would involve updating the database of all old permalinks to add an "s" in front, which may be more complex to address (how/when do you trigger that conversion, as it shouldn't be a process that is done by the user manually)
from shaarli.
@e2jk thanks for your input. Your solution looks good, however I'm not sure at all about how permalink storage is handled in Shaarli.
The developer documentation is basically non-existent (what we have + comments in code) and we've been hacking at the code with an axe so far. The docs were requested at sebsauvage#17
This kind of bug reaally needs @sebsauvage's input.
from shaarli.
- The
name
attribute has been deprecated in HTML5 (http://www.w3.org/TR/html5/obsolete.html) - I can't reproduce the error 500 mentioned in sebsauvage#131 and sebsauvage#190. This is likely a server cofiguration problem, please check your configuration.
I suggest we close this as wontfix
.
@Alkarex @BoboTiG @e2jk @Sbgodin @sebsauvage @timovn what do you think?
from shaarli.
I'm OK with closing.
from shaarli.
Related Issues (20)
- doc: improve docs on usage of OR operator in tags search
- infinityfree.net hosting : error "Not enough available disk space to save the datastore" HOT 9
- user.css in data directory has no effect (shared hosting) HOT 5
- CI: Shaarli\ThumbnailerTest::testThumbnailCommonValid frequently failing because of rate-limiting HOT 1
- Cant catch qrcode or thumbails with a apache proxy made HOT 5
- Can I add directory nesting? HOT 1
- Un-Share a Private Link HOT 5
- cannot delete certain tags, searching for tag `0` returns all shaares HOT 2
- White/blank page during installation HOT 4
- Move back API documentation to the main repository, update HTML export tooling HOT 2
- Demo plugin (where lf_stuff field is displayed ?) HOT 7
- It's really frustrating. HOT 2
- Update installation screencast
- Feature request: set UID and GID of Shaarli (nginx) process inside container HOT 1
- CI: Build/push Docker image (master/latest): failed (medium-level vulnerability in base alpine 3.16 image) HOT 2
- Feature request: exclude tag HOT 2
- Nginx with Cloudflare tunnel fails at login
- PHP 8.2 compatibility HOT 5
- Import existing bookmarks should update tag list by merging the tags lists
- tests: IntlException: datefmt_create: invalid locale: U_ILLEGAL_ARGUMENT_ERROR (PHP 8.2.12) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shaarli.