Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

How to return to github.com from raw.githubusercontent.com? #1920

Description

@pallavJha

If there's a file in a GitHub repo, for example, this one with URL

https://github.com/istio/istio/blob/1.9.0/samples/bookinfo/platform/kube/bookinfo.yaml

Then we can get the raw content by adding the GET parameter raw = true, like,

https://github.com/istio/istio/blob/1.9.0/samples/bookinfo/platform/kube/bookinfo.yaml?raw=true

which makes the page redirect to

https://raw.githubusercontent.com/istio/istio/1.9.0/samples/bookinfo/platform/kube/bookinfo.yaml

and it presents the raw content of the file, bookinfo.yaml, stored in GitHub.

Is there a way to do the opposite, like, going back to GitHub.com from raw.githubusercontent.com by appending a GET parameter? If I change the domain from raw.githubusercontent.com to github.com then I get 404 because of the incorrect file path.

Thanks!

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