lokyoung / vuejs-paginate

A Vue.js(v2.x+) component for creating pagination.
MIT License
778 stars 171 forks source link

why not use src in <a> link #103

Closed bimohxh closed 5 years ago

bimohxh commented 5 years ago

I find this component only has click-handler click event, why just add link like <a src="xxxxxx?page=1"></a> ? this will lead a good SEO.

lokyoung commented 5 years ago

Hi @bimohxh , firstly i don't think src is valid in a tag, i think what you mean is href. Secondly adding href and click will change the url in SPA which may bring unexpected behavior.

fjeddy commented 5 years ago

SPA does not mean "no links"... Most SPA's today uses links so you can go back to the specific page and or bookmark a page.

This shouldn't be closed and is def. a +1 from me.

mirzaevra commented 4 years ago

Hey. Add the ability to add an attribute href. For ssr it is very necessary.

aavrug commented 1 year ago

The href option should be there in the configuration which will be really helpful for SSR. Not sure why this is still not supported. Can you please consider this?