Skip to content

Commit 4823bf9

Browse files
authored
fix form not properly submitting ?url=
fixes: - #4 as much as I agree with other comments that the `?url=` segment is a bit awks, IMO it is best practice to use explicit parameters; it is not as if GH Pages lets you do this anyway This kind of long-term shortcut would be best handled on the host level, e.g. with a Cloudflare redirect `htmlfil.es/(.+) -> https://html-preview.github.io/?url=$1`
1 parent 1c35342 commit 4823bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</style>
3939
</head>
4040
<body>
41-
<form id="previewform" onsubmit="location.href='/?'+this.file.value;return false">
41+
<form id="previewform" onsubmit="location.href='/?url='+this.file.value;return false">
4242
<h1>Git-Forge HTML Preview</h1>
4343
<p>
4444
Enter URL of the HTML file to preview:

0 commit comments

Comments
 (0)