Comments (4)
I'll probably make it an environment settings - problem is that some static site generators (jekyll for example) can't really handle history pushstate based URLs, so without the hash you get a 404 each time there's an auto-refresh.
We can probably set the location method on the Ember app during initialization based on either the config.yml or a setting in the html page.
from decap-cms.
Is there a way we can, similarly a Backbone app, use Backbone.history.start({ pushState: true })
?
Also considering that the page on /admin
isn't part of the jekyll site and is it's own html page, can't the ember app only route using /admin
as it's base, which would allow us to remove the hashbag?
from decap-cms.
Yes, Ember has a similar way of controlling the routing:
http://emberjs.com/api/classes/Ember.Location.html
We automatically use the /admin part as the base, and setting {location: "history"}
will work fine. The problem comes when your viewing a path like:
/admin/collections/posts
And then do a browser refresh. At that point all of the static site generators will give you a 404 out of the box and you'll have to go back to /admin to get the index page...
from decap-cms.
Ahh right, totally forgot about that... haha my bad
from decap-cms.
Related Issues (20)
- A build fails, while creating nextjs blog template HOT 1
- Error: Cannot find a descendant at path [7,0,0,0,2] in node: {"children":[{"type":"paragraph","ch... HOT 1
- (re)generated TOML file doesn't have a new newline end of file HOT 6
- Gitea API Problem
- Add option for the image widget to return object instead of URL
- Error: Cannot resolve a DOM node from Slate node: {"text":""} HOT 2
- Error: Cannot resolve a DOM node from Slate node: {"text":""} HOT 1
- Error: Cannot resolve a DOM node from Slate node: {"text":""}
- Potential typo? HOT 1
- Hand editing YAML without schema types/autocomplete is a time-sink HOT 4
- Replace validate-color in color widget
- Replace vuepress with vitepress HOT 2
- Possible block navigation HOT 3
- Better Cloudinary authentication
- TypeError: Cannot read properties of undefined (reading 'get') HOT 1
- Error: Failed to load config.yml with hugo HOT 3
- Use name from github account in open authoring
- Editorial Workflow not working (BETA)
- Decap not requesting necessary oAuth permissions from GitHub organization
- Not able to use local_backend in a Hugo website HOT 2
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 decap-cms.