Handle urls in alpi.js