mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1480] [FR] add option to change config url after setup #1264
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1264
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TomW1605 on GitHub (Aug 23, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1480
i am using this for a project where i need to have a web ui with a few pages, i would like that to be the first thing shown when going to the IP of the device (eg it is bouned to
/). but i would also like to be able to reconfigure the wifi settings without needing to mess arround with buttons or haivng a timeout. so idealy i could just have a button on the main page that takes you to the WiFiManager config page. but for that to work WiFiManager would need to be listening on a diffrent url.could there be an option to change this?
@tablatronix commented on GitHub (Aug 30, 2022):
You can add your own endpoint handlers and override the defaults there is also a variable somewhere with the root
@TomW1605 commented on GitHub (Aug 30, 2022):
thanks for the reply. i know i can define my own endpoints for my other pages and i assumed i could override the default ones. i also found where the root path is defined, however, i didnt want to edit the library because then if i need to compile this code on my other computer it wont work. i always try and avoid editing librarys unless it is 100% nesasery to maintain portablitaly.\
so i was hoping to add it as a function, i dont think it would be that hard and if it is something the project would be open too i would be happy to give it a shot and open a PR with the changes
@tablatronix commented on GitHub (Aug 30, 2022):
I wonder should I make the root configurable but ALSO the root path for all WM pages?
eg.
const char R_root[] PROGMEM = "wm/";
const char R_wifi[] PROGMEM = "R_root/wifi";
Just a thought.. hmm
SO a subpath changes and makes all paths unique?
@TomW1605 commented on GitHub (Aug 30, 2022):
that is probably a good idea, it minimises the risk of having other clashes if you want to have your own page for other things like status or info