Code Monkey home page Code Monkey logo

aldryn-redirects's People

Contributors

chive avatar czpython avatar filwaitman avatar finalangel avatar stefanfoulis avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aldryn-redirects's Issues

Configuration on Aldryn cloud

Just a thought on the documentation - when added as an Aldryn add-on, is the below required?

MIDDLEWARE_CLASSES.extend([
    # add your own middlewares here
    'aldryn_redirects.middleware.RedirectFallbackMiddleware',        
])

Would be good to clarify either in the main readme or in the aldryn-redirects plugin info in the control panel.

Crash when only one site exists

When there is only one site, and trying to add a static redirect, getting the following error:

Error during template rendering
In template /virtualenv/lib/python3.5/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, error at line 19

'int' object is not iterable

A workaround is to add a second site, and then a proper box is displayed to choose which site to apply the redirect to.

Seems that when trying to generate the 'related-widget-wrapper' an attempt is made to iterate over an array of ID options, but only one option is given - as an int...

Not quite sure where this occurs, or I'd fix it... probably easy for anyone familiar with the code.

Redirecting urls with different language codes in path

If there any chance to strip language code from path before redirect.
Or maybe to add settings, as "Strip language code before redirect".

Currently we have to setup 1+count(languages) redirects to fit our requirements:
/test ->
/de/test ->
/en/test you ->
...

And each of redirects should have new_path with all translations.
It is a bit mess.

smarter MIDDLEWARE_CLASSES positioning

I'm not sure how to robustly introspect when determining the best location. But the middleware should be after aldryn_sites.middleware.SiteMiddleware and djangosecure.middleware.SecurityMiddleware (django.middleware.security.SecurityMiddleware on aldryn-django>=1.8.8.2), since those do domain level and http/https redirects.

Those middlewares are added by aldryn-django, but not with all versions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.