Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HTML5 History API instead of hash #80

Open
filips123 opened this issue Oct 25, 2018 · 1 comment
Open

Use HTML5 History API instead of hash #80

filips123 opened this issue Oct 25, 2018 · 1 comment

Comments

@filips123
Copy link

filips123 commented Oct 25, 2018

You could use HTML5 History API instead of window.location.hash. It allows to change state, title and URL of page without reloading the page.

One problem is that pages aren't real so refreshing the page will probably land on an invalid URL. Is it possible to handle that?

Here is a demo: https://html5demos.com/history/

@chrisdiana
Copy link
Owner

I up for this too @filips123

cdp1337 added a commit to cdp1337/markdownmaster that referenced this issue Nov 8, 2022
Fixes:

Images/hyperlinks within meta tags
chrisdiana/cms.js#95

Google crawler issues
chrisdiana/cms.js#93

URLs using history instead of hashes
chrisdiana/cms.js#80

Also:
Embedded marked in the example as a default option for users
Implement github CI on pushes to verify repo
Include example site in deployed package
Switch onroute and onload to be separate methods outside of the config
object
Add dynamic page titles based on content
Add dynamic Last-Modified headers for automatic post dates
Add support for nested content
Add support for paths in the URL
Retool search to support searching body content
Add method to retrieve all tags for a given collection
Add SEO-specific page title (text that displays in the browser for the
page)
Add support for images within metadata (goes along with the bugfix)
Fix onroute to only be called AFTER the content has been rendered
Add debug logging method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants