jstrieb / urlpages

Create and view web pages stored entirely in the URL
http://jstrieb.github.io/urlpages
MIT License
1.38k stars 128 forks source link

URL contains wrong server #23

Closed Pyanne closed 4 years ago

Pyanne commented 4 years ago

The buttons link to a non expected url. Whatever server I use to host the script, the generated url is always beginning with "http://jstrieb.github.io/".

You can try with this one: http://fazervrac.free.fr/urlpages/

I would expect the utl to begin with fazervrac.free.fr/urlpages/#JTBBJTN… but it begins with http://jstrieb.github.io/urlpages/#JTBBJTN

jstrieb commented 4 years ago

Hi! To fix this, you will need to manually modify one line of code. Specifically, line 40 of editor/editor.js is responsible for generating the "view link." Changing the base URL there should fix your problem.

Thanks!