Add single page application support for Github pages (Add SPA support) #148618
Replies: 4 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Here's a quick solution until the feature is supported but github. I've used this in my repository and it works perfectly. |
Beta Was this translation helpful? Give feedback.
-
@Shomnipotence we're going through our unanswered discussions, I know it has been a minute, but I wanted to check and see if you were able to get this solved? |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
As github pages does not support server side configuration (for example .htaccess files), it is impossible to get url rewriting to the index page working for a single page application.
Ideally, there should be a .gh-pages.yml or similar file in the repo root that has certain flags like
The above would be the equivalent of the following for nginx
The workaround is to use a hashbang like in angularjs html5 mode but this is fairly unsightly.
I think this feature is much wanted in the angular js community/VuePress, and any other frontend javascript framework that supports the HTML5 History API.
Beta Was this translation helpful? Give feedback.
All reactions