Skip to content

Commit

Permalink
Update rake task to have relative urls
Browse files Browse the repository at this point in the history
  • Loading branch information
syed-ali-tw committed Aug 19, 2024
1 parent 50c2162 commit 9ca240a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/tasks/create_popular_links_and_link_to_homepage.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ desc "Create popular links and links to homepage"
task create_popular_links_and_link_to_homepage: [:environment] do
homepage_content_id = "f3bbdec2-0e62-4520-a7fd-6ffd5d36e03a".freeze
popular_links = PopularLinksEdition.new(title: "Homepage popular links",
link_items: [{ url: "url1.com", title: "title1" },
{ url: "url2.com", title: "title2" },
{ url: "url3.com", title: "title3" },
{ url: "url4.com", title: "title4" },
{ url: "url5.com", title: "title5" },
{ url: "url6.com", title: "title6" }])
link_items: [{ url: "/url1", title: "title1" },
{ url: "/url2", title: "title2" },
{ url: "/url3", title: "title3" },
{ url: "/url4", title: "title4" },
{ url: "/url5", title: "title5" },
{ url: "/url6", title: "title6" }])

popular_links.save!

Expand Down

0 comments on commit 9ca240a

Please sign in to comment.