Skip to content

Employ .attr("href", "<url>") instead of $("<a href='" + url + "'>") #1

@dsidirop

Description

@dsidirop

We should use .attr() as a matter of best practice to play it safe against weird corner cases where the urls passed on to goTo() are malformed by stray single-quotes <<'>>.

With the new approach the resulting error should be way more clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions