[GH-ISSUE #1480] [FR] add option to change config url after setup #1264

Open
opened 2026-02-28 01:29:19 +03:00 by kerem · 4 comments
Owner

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?

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?
Author
Owner

@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

<!-- gh-comment-id:1231006446 --> @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
Author
Owner

@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

<!-- gh-comment-id:1231025982 --> @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
Author
Owner

@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?

<!-- gh-comment-id:1231034902 --> @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?
Author
Owner

@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

<!-- gh-comment-id:1231101034 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1264
No description provided.