Website User Login Redirect Custom

website_user_login_redirect_custom
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/18.0/website_user_login_redirect_custom
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Cetmix OÜ
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Cetmix OÜ
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, George Smirnov, Mohajiro
WEBSITE
WEBSITEhttps://github.com/OCA/website
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website
    - digest
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - social_media
    - google_recaptcha
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES geoip2
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows administrators to configure a custom URL where website users will be redirected after login or registration.
The same applies to new signups.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_website_login_redirect_settings res.config.settings.view.form.inherit.website.redirect res.config.settings xpath Inherits website.res_config_settings_view_form
Models touched (1)

New fields (2)
  • website_login_redirect_enabled Boolean
    config_parameter='website_user_login_redirect_custom.enabled' help='If checked, users will be redirected to a custom URL after login/signup.' string='On Login/Signup Redirect'
  • website_login_redirect_url Char
    config_parameter='website_user_login_redirect_custom.url' help="Relative URL path where users will be redirected after login/signup. Example: '/', '/shop', '/thank-you-for-joining-us'." string='Custom URL'
Public methods (1)
  • is_valid_redirect_url(url) -> bool
    @staticmethod
    Validate that URL is a safe relative path for redirects
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/14.0/website_user_login_redirect_custom
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Cetmix OÜ
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Cetmix OÜ
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Mohajiro
WEBSITE
WEBSITEhttps://github.com/OCA/website
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 18:50:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website
    - digest
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - social_media
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows administrators to configure a custom URL where website users will be redirected after login or registration.
The same applies to new signups.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_website_login_redirect_settings res.config.settings.view.form.inherit.website.redirect res.config.settings xpath Inherits website.res_config_settings_view_form
Models touched (1)

New fields (2)
  • website_login_redirect_enabled Boolean
    config_parameter='website_user_login_redirect_custom.enabled' help='If checked, users will be redirected to a custom URL after login/signup.' string='On Login/Signup Redirect'
  • website_login_redirect_url Char
    config_parameter='website_user_login_redirect_custom.url' help="Relative URL path where users will be redirected after login/signup. Example: '/', '/shop', '/thank-you-for-joining-us'." string='Custom URL'
Public methods (1)
  • is_valid_redirect_url(url) -> bool
    @staticmethod
    Validate that URL is a safe relative path for redirects