Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to redirect one url to another ? #23

Open
bigretromike opened this issue Sep 9, 2019 · 2 comments
Open

Is there a way to redirect one url to another ? #23

bigretromike opened this issue Sep 9, 2019 · 2 comments

Comments

@bigretromike
Copy link

@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
Copy link
Author

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

@michaelarnauts
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants