File tree Expand file tree Collapse file tree 2 files changed +40
-11
lines changed
Expand file tree Collapse file tree 2 files changed +40
-11
lines changed Original file line number Diff line number Diff line change 11<!doctype html>
2- < html >
2+ < html lang =" en " >
33 < head >
4- < script type ="text/javascript ">
5- if ( window . location . pathname !== "/" && ! window . location . pathname . includes ( "." ) ) {
6- window . location . replace ( "/" ) ;
7- }
4+ < meta charset ="utf-8 " />
5+ < title > PatternFly Java</ title >
6+ < script >
7+ // Single Page Apps for GitHub Pages
8+ // https://github.com/rafgraph/spa-github-pages
9+ // This script takes the current URL and converts the path and query string
10+ // into just a query string, and then redirects the browser to the new URL
11+ // with only a query string and hash fragment.
12+ var pathSegmentsToKeep = 0 ;
13+ var l = window . location ;
14+ l . replace (
15+ l . protocol +
16+ "//" +
17+ l . hostname +
18+ ( l . port ? ":" + l . port : "" ) +
19+ l . pathname
20+ . split ( "/" )
21+ . slice ( 0 , 1 + pathSegmentsToKeep )
22+ . join ( "/" ) +
23+ "/?/" +
24+ l . pathname . slice ( 1 ) . split ( "/" ) . slice ( pathSegmentsToKeep ) . join ( "/" ) . replace ( / & / g, "~and~" ) +
25+ ( l . search ? "&" + l . search . slice ( 1 ) . replace ( / & / g, "~and~" ) : "" ) +
26+ l . hash ,
27+ ) ;
828 </ script >
929 </ head >
10- < body >
11- < p > Page not found. < a href ="/ "> Click here</ a > .</ p >
12- </ body >
30+ < body > </ body >
1331</ html >
Original file line number Diff line number Diff line change 1- <!DOCTYPE html> < html lang =en > < link rel =stylesheet href =/web.c0fb2536.css > < title > PatternFly Java</ title > < meta charset =utf-8 > < meta http-equiv =x-ua-compatible content ="ie=edge "> < meta name =viewport content ="width=device-width, initial-scale=1 "> < link rel ="icon shortcut " href =/favicon.5c4a4b91.png > < script type =module src =/web.390bdf41.js > </ script > < body >
1+ <!DOCTYPE html> < html lang =en > < link rel =stylesheet href =/web.c0fb2536.css > < title > PatternFly Java</ title > < meta charset =utf-8 > < meta http-equiv =x-ua-compatible content ="ie=edge "> < meta name =viewport content ="width=device-width, initial-scale=1 "> < link rel ="icon shortcut " href =/favicon.5c4a4b91.png > < script type =module src =/web.390bdf41.js > </ script > < script >
2+ // Single Page Apps for GitHub Pages
3+ // https://github.com/rafgraph/spa-github-pages
4+ // This script checks to see if a redirect is present in the query string,
5+ // converts it back into the correct URL, and replaces the state in the browser history.
6+ ( function ( l ) {
7+ if ( l . search [ 1 ] === '/' ) {
8+ var decoded = l . search . slice ( 1 ) . split ( '&' ) . map ( function ( s ) {
9+ return s . replace ( / ~ a n d ~ / g, '&' )
10+ } ) . join ( '?' ) ;
11+ window . history . replaceState ( null , null , l . pathname . slice ( 0 , - 1 ) + decoded + l . hash ) ;
12+ }
13+ } ( window . location ) )
14+ </ script > < body >
215 < script src =./showcase.js defer > </ script >
3-
4-
You can’t perform that action at this time.
0 commit comments