Skip to content
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

Update rake task to have relative urls #2290

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading