Learn more
Scrivito is proudly made by JustRelate Group in Berlin, Germany, and Wrocław, Poland.
Scrivito is proudly made by JustRelate Group
  • Product
    See a Demo
    Scrivito Customer Support
  • Widgets
  • Developers
    Documentation Overview
    Editor’s Guide
    Admin’s Guide
    Quickstart Guides
    Extending the Example App (Basic)
    Extending the Example App (Advanced)
    Key Concepts
    Integrations
    Web Development Guides
    Advanced Use Cases
    Going Live
    JavaScript SDK API
    JavaScript SDK Release Notes
    Contact Customer Support
  • Sign up
  • My Scrivito
  • EN
    EnglishDeutsch
  • Developers
  • JavaScript SDK API
  • Link
  • copy(attributes)

copy(attributes)

Copies the Link and optionally changes some of the attributes of the new link.

externalLink = new Scrivito.Link({url: "https://scrivito.com"});
externalLink2 = externalLink.copy({target: '_blank'});
console.log(externalLink2.url());

Params

  • attributes (Object) - The attributes of the new Link.

Throws

  • ArgumentError - If invalid attributes have been provided.

Returns

A new Link.

  • Documentation Overview
  • Editor’s Guide
  • Admin’s Guide
  • Quickstart Guides
  • Extending the Example App (Basic)
  • Extending the Example App (Advanced)
  • Key Concepts
  • Integrations
  • Web Development Guides
  • Advanced Use Cases
  • Going Live
  • JS SDK API
    • Top-Level API
    • Custom Attribute Types
    • Obj
    • Widget
    • Binary
    • FutureBinary
    • Link
    • Editor
    • Team
    • MetadataCollection
    • ObjSearch
    • ObjFacetValue
    • SiteContext
    • Errors
    • React Components
    • Content not yet Loaded Error
  • JS SDK Release Notes
  • Contact Customer Support
  • new Link
  • copy
  • hash
  • isExternal
  • isInternal
  • obj
  • query
  • queryParameters
  • rel
  • target
  • title
  • url
Scrivito
  • Start Free Trial
  • CMS Overview
  • Why Scrivito?
  • Technology
  • Integrations
  • Partners
  • Pricing
Support
  • Contact Support
  • Dashboard Login
  • Documentation
  • Release Notes
  • Widget Marketplace
  • Service Status
Legal
  • About Us
  • Imprint
  • Privacy Policy
  • Transparent Information
  • Terms of Service

© 2021 – All rights reserved Scrivito is proudly made by JustRelate Group in Berlin, Germany, and Wrocław, Poland.