- Operating System : Windows 10.0.18363
- Wappler Version : 3.0.1
I am not 100% sure that this is a bug, but it certainly looks like one.
I had created many routes before using Wappler 2.x.x. I recently created a new route using Wappler 3.0.1 and upon inspecting .htaccess, noticed that Wappler put left in the file all the routes that were there before, and at the end of the file, added a new of rules that included the new route that I had just PLUS all the existing ones. Effectively, everything but the new route appears twice.
Note that the Project had Routes that had been created at different times but those routes where in the file only once. I confirmed that using the GIT. All those previously existing routes had been created in versions prior to 3.0.1 – the one I tried now is the first one I created using Wappler 3.0.1
htaccess.zip (767 Bytes)
In the attached file, you can see:
- Lines 7 to 58: the old routes
- Lines 73 to 74: the new route
- Lines 75
to 126: the old routes again
Steps to reproduce
- Click on the “New Server Connect Route”
- Define the new route
- Click on Generate Routing Rules
- Click on Upload Routing Rules
- Inspect the updated .htaccess file
PS1: of curiosity, what is the logic for showing the routes in the routes panel? Does not seem to be sorted alphabetically or by creation date.
PS2: the automatic title that says "Bug report xxx " sets the month number to the previous month. It put a 6 but we are on July, and probably s/b a 7.