[SOLVED] URL hierarchy help
Posted: Fri Jun 01, 2012 2:21 pm
Hello all,
I've come across a peculiar behaviour in the URL hierarchy of CMSMS and I wanted to ask if anyone had come across this problem and figured out a way to resolve it?
Basically if I go to:
mysite.com/parentA/childA
I will be sent to the childA page. Now if I then go to the same page but using a different parent:
mysite.com/parentB/childA
I still get directed to the same page but the URL hasn't changed. So to the average user that would mean that childA has been created under parentA and parentB; when in fact it is only under parentA and should either be redirected or show an error when called under parentB.
Now I know to be able to use page aliases as "shortcuts" they must be unique per page and can be used shorthand:
mysite.com/childA
That's fine but it almost seems like the issue I have found is a bug as a result of this.
Currently the only solution I can come up with is to use CGSimple to check if the current page alias is a child of the parent declared in the URL and redirecting to the correct URL if not.
Any other ideas would be very helpful as I am concerned with how this might affect Google and the inconsistency in this doesn't make sense.
Thanks
Mr. Enigma
I've come across a peculiar behaviour in the URL hierarchy of CMSMS and I wanted to ask if anyone had come across this problem and figured out a way to resolve it?
Basically if I go to:
mysite.com/parentA/childA
I will be sent to the childA page. Now if I then go to the same page but using a different parent:
mysite.com/parentB/childA
I still get directed to the same page but the URL hasn't changed. So to the average user that would mean that childA has been created under parentA and parentB; when in fact it is only under parentA and should either be redirected or show an error when called under parentB.
Now I know to be able to use page aliases as "shortcuts" they must be unique per page and can be used shorthand:
mysite.com/childA
That's fine but it almost seems like the issue I have found is a bug as a result of this.
Currently the only solution I can come up with is to use CGSimple to check if the current page alias is a child of the parent declared in the URL and redirecting to the correct URL if not.
Any other ideas would be very helpful as I am concerned with how this might affect Google and the inconsistency in this doesn't make sense.
Thanks
Mr. Enigma