-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Urls redux #5978
base: main
Are you sure you want to change the base?
Urls redux #5978
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -463,6 +463,7 @@ def immutable_file_test(path, url): | |
}, | ||
] | ||
|
||
APPEND_SLASH = True | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is not needed |
||
|
||
MIDDLEWARE: tuple[str, ...] = ( | ||
"kitsune.sumo.middleware.HostnameMiddleware", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,11 +192,11 @@ def test_internal_links(self): | |
# Both internal links should link to the same article | ||
self.assertEqual( | ||
p.parse("[[%s]]" % doc.title), | ||
'<p><a href="/en-US/kb/%s">%s</a>\n</p>' % (doc.slug, doc.title), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why does this need changing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because
|
||
'<p><a href="/en-US/kb/%s/">%s</a>\n</p>' % (doc.slug, doc.title), | ||
) | ||
self.assertEqual( | ||
p.parse("[[%s]]" % redirect.title), | ||
'<p><a href="/en-US/kb/%s">%s</a>\n</p>' % (doc.slug, doc.title), | ||
'<p><a href="/en-US/kb/%s/">%s</a>\n</p>' % (doc.slug, doc.title), | ||
) | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's update the urls per app. One PR for one app and avoid adding multiple commits per app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd ask you to reconsider - this is a test in
dashboards
that fails because of a setting change in thewiki
urls .This PR is for
wiki
url changes, and fixing what those changes break, which is tests in a four other apps. You need thewiki/urls.py
changes in place so your changed tests will work.