This website requires JavaScript.
Explore
Help
Sign in
codeninjasllc
/
discourse
Watch
1
Star
0
Fork
You've already forked discourse
0
mirror of
https://github.com/codeninjasllc/discourse.git
synced
2024-11-23 23:58:31 -05:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
89add4a4a2
discourse
/
spec
/
fabricators
/
permalink_fabricator.rb
4 lines
76 B
Ruby
Raw
Normal View
History
Unescape
Escape
FEATURE: add a way to map arbitrary urls to a topic, post, or category. Useful for sites that have migrated to Discourse and want to redirect from their old site to Discourse with 301 redirects.
2014-08-28 15:09:36 -04:00
Fabricator
(
:permalink
)
do
url
{
sequence
(
:url
)
{
|
i
|
"
my/
#{
i
}
/url
"
}
}
Don't blow up if Redis switches to READONLY
2015-04-24 13:10:43 -04:00
end
Reference in a new issue
Copy permalink