You have two folders with the same name. This works with 2 views of the same name as well.
This could happen because one user did not have access to one folder and so created another one with the same name.
You cannot create (using right click New folder... ) another folder with the same name, notes will not let you. NB You can with lotusscript.
If you use @command([OpenView];"viewname") or uidb.openview("viewname") the first view will be opened every time. How to get the second one?
You can forall your way through db.views and get a handle to the views and then use view.universalid and then use code like this:
p:="notes://"+
@Name([CN];@Subset(@DbName;1))+"/"+
@Subset(@DbName;-1)+"/"+folderunid;
@URLOpen(p)
or
uiw.urlopen(p)
NB if the view no longer exists a random view (may be the default view) will be opened.
This will probably work with views, folders, forms, outlines etc
Notes is lovely*.
*: sometimes.