bugfix: identify id from pathname