Skip to content

Url regex for redirect_to_article#4

Open
maximegaillard wants to merge 1 commit intocodekoala:masterfrom
maximegaillard:master
Open

Url regex for redirect_to_article#4
maximegaillard wants to merge 1 commit intocodekoala:masterfrom
maximegaillard:master

Conversation

@maximegaillard
Copy link

No description provided.

@codekoala
Copy link
Owner

Can you describe to me why you want this to be \d{4}? Right now it's using .{3} to maintain a little bit of backward compatibility with sites that used django-articles when URLs used month abbreviations instead of month numbers. Think about links to articles on other sites, where the link looks like http://www.myfavoritesite.com/blog/2009/dec/15/some-article/

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

Successfully merging this pull request may close these issues.

2 participants