When I am on the requests route page, the URL on browser says “www.domain.com/app/requests”, which is fine.
Now on this page, I need to redirect to the “/F002” route. To do this, when I select the route in a browser.goto() action, the code I get is: browser.goto('./F002/123')
When this code gets executed on the browser, the application breaks. This is the URL shown in the address bar: “www.domain.com/appF002/123”.
If I MANUALLY change the code in browser.goto as: browser.goto('.//F002/123'), then the page correctly redirects to “www.domain.com/app/F002/123” and the page opens.
How to route to a sibling route page when nested under another route?
I have searched the bugs and can’t find any other reference to this exact error. The only other bug that is similar is this one but it is a different issue as far as I can tell.
I have had this issue occur today also. It started with an older version but after updating to 3.5.7 it is still present.
@patrick / @Teodor some insight on this would be helpful. Just saw this issue again day before yesterday in 3.5.7. So it has not been fixed yet.
This time it was in ASP.NET server. Originally it was in PHP.
Can you please check the original post again. I think you have misread the issue. Trailing slashes on the page routes don’t help. broswer1.goto('./requests') when on /app path, just redirects to /apprequests/. What we need is /app/requests.
Yeah I followed that. What I am saying is I don't need to add it to ALL routes. Just the ones that have nesting. /app in my case.
Instead your screenshot added trailing slashes to all the other routes, except the one where it was actually required. Hence the confusion.
Tested by changing /app to /app/ and it works now. Thanks.