Comments (2)
I think at that point it probably makes sense to just store it as a string. What's the advantage of using the URL type there?
from lektor.
Hey I just realized that the url type does not actually stop users from saving relative urls, just marks as invalid. I don't really have an issue with this. Maybe I'll have a go at making a plugin with a relative url type. Benefit might be that I could validate the relative url against the site to see if a route exists for it. Maybe even provide autocomplete options or a warning if the route got deleted next time somebody edits the data.
Closing!
from lektor.
Related Issues (20)
- Project.id can collide for projects with the same tree, but different project files
- dateformat filter causes assertion errors HOT 2
- Gzip compressed files HOT 1
- pip>=23.1 breaks the installation of local plugins in Lektor 3.3.8 HOT 1
- Enable dev mode results in error HOT 1
- Deprecated Werkzeug APIs in use HOT 2
- How to modify database from external script? HOT 3
- How to paginate data from databags? HOT 2
- Specify template for flowblock HOT 1
- Upgrade mistune to v3 HOT 5
- Simplify Record.__getitem__ / remove _bound_data HOT 2
- Lektor cached venv is broken on macOS with Python installed via Homebrew HOT 2
- The default port (5000) of `lektor server` conflicts with the macOS AirPlay Receiver feature HOT 1
- using variables inside content.lr HOT 1
- Upgrade the GHA workflow to use secretless publishing HOT 1
- [idea] PyPI org
- Nested flow lead to RecursionError HOT 2
- Remove werkzeug pin to versions < 2.4 HOT 3
- Need a recommendation of how to include an external .md file and extract information from it for model fields. HOT 1
- No trailing slash on alt="_primary"?
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 lektor.