fix "current_url()" behavior by relying on routes' url generation mechanism
instead of simplistic path manipulation.

Previously "current_url()" generated bad urls whenever MediaCore was mounted
in a subdirectory.