mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-30 10:46:24 +02:00
Merge pull request #253 from Grufbert/url-path-relative
Use relative url path on setup page
This commit is contained in:
commit
f97d365da7
2 changed files with 5 additions and 9 deletions
|
@ -54,7 +54,7 @@
|
|||
<div id="content">
|
||||
<a class="erase" href="/erase">ERASE SETTINGS (not WiFi)</a>
|
||||
|
||||
<form method="post" action="{IP}/save">
|
||||
<form method="post" action="/save">
|
||||
<fieldset>
|
||||
<legend class="des">Device Host Name</legend>
|
||||
<label for="device">Device Name</label>
|
||||
|
@ -143,11 +143,11 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<p class="left"><a href="{IP}/">Home</a></p>
|
||||
<p class="left"><a href="{IP}/update">Update Firmware</a></p>
|
||||
<p class="left"><a href="/">Home</a></p>
|
||||
<p class="left"><a href="/update">Update Firmware</a></p>
|
||||
<p class="right">AHOY - {VERSION}</p>
|
||||
<p class="right"><a href="{IP}/factory">Factory Reset</a></p>
|
||||
<p class="right"><a href="{IP}/reboot">Reboot</a></p>
|
||||
<p class="right"><a href="/factory">Factory Reset</a></p>
|
||||
<p class="right"><a href="/reboot">Reboot</a></p>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -187,10 +187,6 @@ void web::showSetup(void) {
|
|||
// -> the PWD will only be changed if it does not match the default "{PWD}"
|
||||
html.replace(F("{DEVICE}"), String(mSysCfg->deviceName));
|
||||
html.replace(F("{VERSION}"), String(mVersion));
|
||||
if(mMain->getWifiApActive())
|
||||
html.replace("{IP}", String(F("http://192.168.1.1")));
|
||||
else
|
||||
html.replace("{IP}", (F("http://") + String(WiFi.localIP().toString())));
|
||||
|
||||
String inv = "";
|
||||
Inverter<> *iv;
|
||||
|
|
Loading…
Add table
Reference in a new issue