# Parameter "page" in the url

**URL:** <https://forum.ghost.org/t/parameter-page-in-the-url/734>\
**Category:** Developer help\
**Created:** [April 4, 2018, 9:50am UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734 "2018-04-04T09:50:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [April 4, 2018, 9:50am UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/1 "2018-04-04T09:50:29Z")

</div>

Google search console reported a significant increase in pages that return the 404 error.

Almost all errors derive from url containing the “page” parameter.

The problem is that I do not know what it is, I’ve never used tags or parameters like that.

I create articles and insert tags, nothing more.

![404](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex015/uploads/ghost2/original/1X/b187510e3908f42449082410812634186b7c99bd.png)

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 4, 2018, 10:14am UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/2 "2018-04-04T10:14:58Z")

</div>

All ghost blogs have `/page/x/` and `/tag/foo/page/x` and so on if there are enough posts to fill more than one page (default Casper pagination is [25 posts per page](https://github.com/TryGhost/Casper/blob/master/package.json#L51) but it’s theme-dependent). Eg:

[https://blog.ghsot.org/page/2/](https://blog.ghsot.org/page/2/)  
[https://blog.ghost.org/author/belle-beth-cooper/page/2/](https://blog.ghost.org/author/belle-beth-cooper/page/2/)  
[https://blog.ghost.org/tag/new-things/page/2/](https://blog.ghost.org/tag/new-things/page/2/)

These pages are linked via meta tags and the sitemap but only if they exist. Without providing your site URL it’s difficult to see what the problem is but you need to check for anything that might be preventing those URLs from loading.

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [April 4, 2018, 11:18am UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/3 "2018-04-04T11:18:14Z")

</div>

I’m using casper with some changes.

this is my site url [https://imroot.it](https://imroot.it)

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 4, 2018, 11:25am UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/4 "2018-04-04T11:25:13Z")

</div>

Your page URLs are working fine where you have enough posts, eg [https://imroot.it/page/3/](https://imroot.it/page/3/)

There are also no links to further pages in the HTML or the sitemap from what I can see so it looks like Ghost is doing everything correctly. Not sure what to suggest here, it seems like it’s just Google’s crawler trying to load pages that it’s guessing might be there 🤔

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [April 4, 2018, 12:47pm UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/5 "2018-04-04T12:47:46Z")

</div>

So there are no errors in ghost on in the few changes I’ve made?  
Can not solve in any way? I hope I’m not penalized by google

Thanks for help

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [April 4, 2018, 4:32pm UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/6 "2018-04-04T16:32:49Z")

</div>

@giacomosilli Hi 👋

I was able to find a bug in Casper that generates extra URLs, although they’re usually in the form `/page/2/page/2/`. I’m not sure if this is causing what you are seeing, but I’ve raised it here:

> <https://github.com/TryGhost/Casper/issues/445>
>
> Related to https://github.com/TryGhost/Casper/commit/8690450eaeade583564b0a12c6a…2dc12ff729517, infinite scroll still generates additional requests if you're already on page/2 for example
> 
> I found this whilst looking at https://forum.ghost.org/t/parameter-page-in-the-url/734
> 
> It would be good to do some extra diligence to make sure there is no other way to generate incorrect URLs with the infinite scroll plugin.
> 
> \### Screenshot
> 
> !\[\](https://puu.sh/zWaLm.png)
> 
> \### Steps to Reproduce
>  
> 1. Find some content that has multiple pages
> 2. Navigate to the last page e.g. page/2/
> 3. Open your network tab to XHR
> 4. Scroll down as much as posible
> 5. Watch the infinite scroll plugin generate urls like \`page/2/page/2/\` and try to request them
> 
> \### Technical details
> 
> \* Casper Version: version on blog.ghost.org

I recommend watching that issue so that you can apply the same fix to your blog.

Bugs like this are usually fixed on Mondays.

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [April 4, 2018, 10:24pm UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/7 "2018-04-04T22:24:07Z")

</div>

Hi,  
I have performed this fix.  
You can see the changes on the site I posted before.

I’ll wait for the google reply.

> [@Hannah](#):
>
> Bugs like this are usually fixed on Mondays.

Unfortunately, if you update the casper theme these have no effect on mine since I edited it.

If I edit the original theme and then upload it, the original casper is not overwritten but adds another one. So I will not have the theme updates.

Is there a way to edit the original theme and still receive fixes and updates without compromising my changes?

Thanks for help

---

<div class="post-metadata">

**Author:** ![mds08011](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mds08011/32/314_2.png) [@mds08011](https://forum.ghost.org/u/mds08011)\
**Post date:** [April 4, 2018, 11:59pm UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/8 "2018-04-04T23:59:43Z")

</div>

> [@giacomosilli](#):
>
> If I edit the original theme and then upload it, the original casper is not overwritten but adds another one. So I will not have the theme updates.

Personally, I just copy my edits into a new Casper copy every few versions. However, if you have made major changes to the theme this might not be a feasible option.

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [April 5, 2018, 8:51am UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/9 "2018-04-05T08:51:05Z")

</div>

Thanks for the advice, I have to evaluate if I can do the same thing

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [April 5, 2018, 11:17am UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/10 "2018-04-05T11:17:13Z")

</div>

> [@giacomosilli](#):
>
> Is there a way to edit the original theme and still receive fixes and updates without compromising my changes?

If you’ve made changes to a theme then you’re then responsible for keeping it up to date. If you’ve forked it with git and the changes are minor then you can probably merge upstream changes in without too much trouble.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [April 19, 2018, 11:17am UTC](https://forum.ghost.org/t/parameter-page-in-the-url/734/11 "2018-04-19T11:17:23Z")

</div>

Closed on April 19, 2018, 11:17am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
