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

passing variable in the shortlink #34

Open
therealelyayo opened this issue Jul 9, 2020 · 1 comment
Open

passing variable in the shortlink #34

therealelyayo opened this issue Jul 9, 2020 · 1 comment

Comments

@therealelyayo
Copy link

would it be possible to append ?email=[email protected] to these redirect and then using the domain of the email to redirect somewhere ,
example?email=[email protected] would goto gmail.com

and [email protected] shuld got yahoo.com

would that be possible

@yakky
Copy link
Member

yakky commented Jul 10, 2020

this package tries to limit its magic to the minimum

I don't understand if your requirements is to create an auto to strip the left part of the email (any possible email appeneded in the URL) and redirect to the main domain for that email. in this case, it's a no, and it would be out of scope of this package whose main goal is to be able to redirect to existing django cms pages.

You can write a plain Django RedirectView to implement this redirect logic (see https://docs.djangoproject.com/en/3.0/ref/class-based-views/base/#redirectview) and use django CMS apphooks (http://docs.django-cms.org/en/latest/how_to/apphooks.html) if you want to add this to a django CMS page

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

No branches or pull requests

2 participants