A modern SharePoint Online web part, released as open source under the MIT License.
Documentation: https://sharepoint-url-shortener.com/
The web part makes it possible to create and redirect shortened URLs. You have 3 features:
- If you open the page of the web part, you can shorten a URL and add it to the database.
- You can also find a URL in the database, that has already been shortened.
- If you paste the shortened URL in the browser, the web part will redirect to the target URL.
Note: Ensure that Node.js V10.x is installed. Do not use newer versions! Node.js V14.x and V16.x will not work. They will install a newer gulp-cli that includes a newer gulp-sass module which will throw an error.
- For 64bit Windows use this Node.js installer.
- On other systems download from Node.js V10.x .
To build the code on Windows, run ship.bat
. On other systems use
npm install gulp-cli -g
npm install
gulp clean
gulp build
gulp bundle --ship
gulp package-solution --ship
It outputs the file [PROJECT_DIR]\sharepoint\solution\url-shortener-and-redirector-webpart.sppkg
.
On Windows, run run.bat
. On other systems use
npm install
gulp serve