kodi-plugin-routing icon indicating copy to clipboard operation
kodi-plugin-routing copied to clipboard

Is there a way to redirect one url to another ?

Open bigretromike opened this issue 4 years ago • 2 comments

@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>/?

bigretromike avatar Sep 09 '19 12:09 bigretromike

redirect only execute function from other path not overwrite the url like redirect 301.

bigretromike avatar Sep 09 '19 17:09 bigretromike

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.

michaelarnauts avatar Oct 25 '19 21:10 michaelarnauts