---
schema_version: "1"
id: d71e091301d0a965110c4cbca4d252be33244d3af2ac814488fcf9f4b8aaacc6
title: PageReference(partialURL)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_System_PageReference_ctor_2.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_System_PageReference_ctor_2.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 44daddc7f81d04b20d8fef15a88f7545a5aef268813e88a49d8ff4104361874f
description: Creates a new instance of the PageReference class using the specified URL.
---
# PageReference(partialURL)

Creates a new instance of the PageReference class using the specified URL.

## Signature

public PageReference(String partialURL)

## Parameters

- **partialURL**: Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.") The partial URL of a page hosted on the Lightning Platform or a full external URL. The following are some examples of the partialURL parameter values:
    - /apex/HelloWorld: refers to the Visualforce page located at http://MyDomainName-PackageName.vf.force.com/apex/HelloWorld, where _MyDomainName_ and _PackageName_ are placeholder values.
    - /recordID: refers to the detail page of a specified record, where _recordId_ is a placeholder value.
    - http://www.google.com: refers to an external URL.