kodi-plugin-routing
kodi-plugin-routing copied to clipboard
Is there a way to redirect one url to another ?
@routing_plugin.route('/filter/<filter_id>/group/<group_id>/')
When using .. item via kodi's webui/kore it will cut <group_id>/ , next time it will cut group/ from url.
Can I somehow redirect urls so when someone enter /filter/<filter_id>/group/ it redirect him to /filter/<filter_id>/?
redirect only execute function from other path not overwrite the url like redirect 301.
It's unfortunate that redirect doesn't accept a real plugin://whatever/path/to/something?id=5 url.
I would expect to be able to do routing.redirect(routing.url_for(function)) to redirect to another endpoint from within the code itself.