Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

express.js can not get url's hash segment directly?

Tags:

express

express provide some simple access to request url, as request.query, request.body ... 
must i use 

url.parse(request.originalUrl).hash.slice(1)?

like image 792
tztxf Avatar asked Dec 08 '22 08:12

tztxf


1 Answers

Browser doesn't send hash part of url to the server, so express.js cannot know about it.

like image 100
Andrey Kuzmin Avatar answered Dec 11 '22 07:12

Andrey Kuzmin