Instead of having the JS code detect the cycle and retreat back up the path, why not have a new symlink, that points to the retreated symlink?
www/
p1.html -> src/p1.html
p1/
p2.html -> src/p2.html
p2/
p3.html -> src/p3.html
p3/
p1/html -> www/p1.html <--- instead of pointing to src/, we point to the symlink
Will this update the http path correctly with a static webserver?
Instead of having the JS code detect the cycle and retreat back up the path, why not have a new symlink, that points to the retreated symlink?
Will this update the http path correctly with a static webserver?