Issue
- When Redirect Pattern is defined such as below to redirect pages, navigating to the URL gives 404 error instead of redirecting properly.
Environment
- DXP 7.4 u65 and lower
Resolution
- By default, patterns defined with
/
in the front should automatically update to start with^/
instead when saving. - However, if it does not, starting with / may lead to 404 errors, and can be resolved by removing the leading slash in DXP 7.4 u65 or lower.
- In DXP 7.4 u66 or higher, LPS-175152 has been added to make the leading slash optional.
- While up to your team's discretion, please note that when looking to only redirect URL's and not necessarily regex patterns, alias redirects are generally recommended instead of using Redirect Patterns when possible.
Additional Information
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar