Skip to content

Commit

Permalink
Solves problem with spaces in title when refreshing a specific page.
Browse files Browse the repository at this point in the history
  • Loading branch information
fako committed Apr 20, 2017
1 parent 5d4f54f commit 8178802
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wiki_feed/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,12 @@ class WikiFeedPublishCommunity(Community):
WIKI_FEED_TEMPLATE_REGEX = "\{\{User:Wiki[_\w]Feed[_\w]Bot/feed(?P<params>[|a-z0-9_=.\-]+)\}\}"

def initial_input(self, *args):
normalized_input = [segment.replace("_", " ") for segment in args]
return Individual.objects.create(
community=self,
properties={
"feed_page": "User:Wiki_Feed_Bot/feed",
"target_page": "/".join(args) if len(args) else ""
"target_page": "/".join(normalized_input) if len(args) else ""
},
schema={}
)
Expand Down

0 comments on commit 8178802

Please sign in to comment.